Skip to content
Vectorlight.net

#04050c

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

HEX
#04050c
RGB
4, 5, 12
HSL
232.5°, 50%, 3.14%
OKLCH
0.12 0.02 274.6
Names
—
Lists

Codes

FormatValue
HEX#04050c
RGBrgb(4 5 12)
HSLhsl(232.5 50% 3.14%)
OKLCHoklch(0.12 0.02 274.6)
CMYKcmyk(66.67% 58.33% 0% 95.29%)
Android#ff04050c

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #04050c;
background-color: #04050c;
bg-[#04050c]