#040C15 Hex Color
Online color picker to view shades, tints, color codes, and complementary colors

#040c15 is an extremely dark, desaturated shade that sits just a hair away from pure black. This moody, sooty blue feels heavy and serious, making it an excellent choice for a dominant background in dark mode UI designs. Because it creates such a high-contrast foundation for white text, the hex code #040c15 works best when paired with softer, off-white accents rather than stark, bright whites.
Questions about #040c15
What is #040c15 in RGB, HSL and CMYK?
In RGB, #040c15 is rgb(4, 12, 21), in HSL hsl(212, 68%, 5%) and in CMYK 81%, 43%, 0%, 92%. Browse more shades of black with names and hex codes.
Why is #040c15 better than pure black for UI backgrounds?
Pure black can cause eye strain due to extreme contrast with white text, whereas #040c15 provides a softer, more natural depth. Using this sooty blue creates a premium feel that is easier to read for extended periods.
What colors pair best with #040c15?
Is #040c15 readable on white or black?
#040c15 has a 19.65:1 contrast ratio on white and 1.06: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.