#040408 Hex Color

Online color picker to view shades, tints, color codes, and complementary colors

Hex color #040408 graphic
#040408 is an almost-black shade with a faint cool violet undertone, giving it a sooty, somber appearance. Its extreme low lightness creates mystery, authority, and control, making it effective for dark-mode interfaces, luxury branding, and editorial layouts. Use it as a dominant background with white text, which achieves about 20.5:1 contrast. The hex code is #040408.

Questions about #040408

What is #040408 in RGB, HSL and CMYK?
In RGB, #040408 is rgb(4, 4, 8), in HSL hsl(240, 33%, 2%) and in CMYK 50%, 50%, 0%, 97%. Browse more shades of black with names and hex codes.
What colors pair well with #040408?
#040408 pairs best with white, soft gray, cool lavender, and restrained metallic accents, creating crisp contrast while preserving its quiet, premium mood; warmer beige or muted gold can soften the cool undertone without overpowering the near-black base.
Where does #040408 work best?
#040408 works well as a dominant background for dark-mode interfaces, luxury branding, and editorial layouts, especially when paired with generous spacing and bright text that lets its subtle violet cast remain understated.
Does #040408 read as warm or cool?
#040408 reads as cool because its near-black base carries a faint violet-blue bias rather than red or yellow; the undertone is subtle, becoming easier to notice beside pure black, cool grays, or blue-violet accents.
Is #040408 readable on white or black?
#040408 has a 20.46: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.