#02040C Hex Color

A Somber Near-Black with a Blue Cast

Hex color #02040c graphic
Think of a starless night sky with a faint blue cast. That is #02040c, an almost-black with a cool, inky feel. Its near-total darkness suits dark mode backgrounds and premium editorial layouts, especially with brass or amber accents. White text reads at about 20.5:1 contrast against it, well past WCAG AA for small type. The hex code #02040c works best as a dominant base.

Questions about #02040c

What is #02040c in RGB, HSL and CMYK?
In RGB, #02040c is rgb(2, 4, 12), in HSL hsl(228, 71%, 3%) and in CMYK 83%, 67%, 0%, 95%.
What colors pair well with #02040c?
Warm tones like amber, brass, and burnt orange keep #02040c from feeling flat. Cool blues and dark grays disappear against it, so favor mid-to-light shades in the rest of the palette.
Is #02040c readable on white or black?
#02040c has a 20.48:1 contrast ratio on white and 1.02:1 on black. WCAG asks for 4.5:1 for body text and 3:1 for large text, so on white it works for body text and on black it is too faint for text. Try other pairs in the contrast checker.