#040D12 Hex Color

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

Hex color #040d12 graphic
Nearly black with a muted blue cast, #040d12 has a sooty, ashy character that feels serious and controlled. The hex code works well as a dominant dark-mode background for security, finance, and technology interfaces, where it supports white text with about 19.6:1 contrast. Pair it with dusty blue or muted burgundy to add depth without losing its somber mood.

Questions about #040d12

What is #040d12 in RGB, HSL and CMYK?
In RGB, #040d12 is rgb(4, 13, 18), in HSL hsl(201, 64%, 4%) and in CMYK 78%, 28%, 0%, 93%. Browse more shades of black with names and hex codes.
What colors pair well with #040d12?
Dusty blue and muted burgundy pair well with #040d12, adding restrained contrast while preserving its somber mood; soft white provides a crisp text or accent color, and muted palettes keep the combination from feeling harsh.
Where does #040d12 work best?
#040d12 works best as a dominant dark-mode background for security, finance, and technology interfaces, where its nearly black base feels serious and controlled; use lighter text and restrained blue or burgundy accents to keep layouts legible.
Is #040d12 readable on white or black?
#040d12 has a 19.59:1 contrast ratio on white and 1.07: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.