#040812 Hex Color

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

Hex color #040812 graphic
Closer to a moonless night sky than true black, this inky shade carries a faint blue undertone. The hex code #040812 sits so deep it works best as a dominant base for dark mode UIs, editorial layouts, and premium branding. White text reaches roughly 20:1 contrast against it, so small body copy stays readable. Its depth vanishes in tiny doses, so commit to it.

Questions about #040812

What is #040812 in RGB, HSL and CMYK?
In RGB, #040812 is rgb(4, 8, 18), in HSL hsl(223, 64%, 4%) and in CMYK 78%, 56%, 0%, 93%. Browse more shades of black with names and hex codes.
What colors pair well with #040812?
Warm accents like brass gold or muted terracotta cut through its cool blue undertone. Off-white text also softens the contrast for a less severe look.
Is #040812 readable on white or black?
#040812 has a 20.02:1 contrast ratio on white and 1.04: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.