Skip to content
Vectorlight.net

#04087a

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

HEX
#04087a
RGB
4, 8, 122
HSL
237.97°, 93.65%, 24.71%
OKLCH
0.27 0.18 265.44
Names
—
Lists

Codes

FormatValue
HEX#04087a
RGBrgb(4 8 122)
HSLhsl(237.97 93.65% 24.71%)
OKLCHoklch(0.27 0.18 265.44)
CMYKcmyk(96.72% 93.44% 0% 52.16%)
Android#ff04087a

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
15.89:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
1.32: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="#04087a"
Gradient stop
<stop stop-color="#04087a"/>
CSS variable + fill
:root { --c: #04087a; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

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