Skip to content
Vectorlight.net

#04307a

Codes, contrast, shades, harmonies and SVG snippets for this color.

HEX
#04307a
RGB
4, 48, 122
HSL
217.63°, 93.65%, 24.71%
OKLCH
0.33 0.13 260.68
Names
—
Lists

Codes

FormatValue
HEX#04307a
RGBrgb(4 48 122)
HSLhsl(217.63 93.65% 24.71%)
OKLCHoklch(0.33 0.13 260.68)
CMYKcmyk(96.72% 60.66% 0% 52.16%)
Android#ff04307a

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
12.28:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
1.70:1
Fail AA normal text
Fail AA large text
On black #000000 · Best text #ffffff

Open in contrast checker

Shades & tints

OKLCH lightness, mixed toward white then black.

Open in shades & tints

Harmonies

Complementary

Analogous

Triadic

Open in palette generator

Color-blindness

Normal
Protanopia
Deuteranopia
Tritanopia

Open simulator

SVG snippets

fill
fill="#04307a"
Gradient stop
<stop stop-color="#04307a"/>
CSS variable + fill
:root { --c: #04307a; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

color / background
color: #04307a;
background-color: #04307a;
bg-[#04307a]