Skip to content
Vectorlight.net

#04014f

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

HEX
#04014f
RGB
4, 1, 79
HSL
242.31°, 97.5%, 15.69%
OKLCH
0.2 0.13 267.29
Names
—
Lists

Codes

FormatValue
HEX#04014f
RGBrgb(4 1 79)
HSLhsl(242.31 97.5% 15.69%)
OKLCHoklch(0.2 0.13 267.29)
CMYKcmyk(94.94% 98.73% 0% 69.02%)
Android#ff04014f

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #04014f;
background-color: #04014f;
bg-[#04014f]