Skip to content
Vectorlight.net

#04020d

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

HEX
#04020d
RGB
4, 2, 13
HSL
250.91°, 73.33%, 2.94%
OKLCH
0.1 0.03 292.44
Names
—
Lists

Codes

FormatValue
HEX#04020d
RGBrgb(4 2 13)
HSLhsl(250.91 73.33% 2.94%)
OKLCHoklch(0.1 0.03 292.44)
CMYKcmyk(69.23% 84.62% 0% 94.9%)
Android#ff04020d

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #04020d;
background-color: #04020d;
bg-[#04020d]