#040B2A Hex Color

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

Hex color #040b2a graphic
Nearly black with a cold, ashy blue undertone, #040b2a sits at the darkest edge of navy. Its very low lightness makes it a strong base for dark mode UI and large type, and white text reaches about 19.3:1 contrast on top of it. Pair it with burgundy or muted gold for depth that plain gray lacks.

Questions about #040b2a

What is #040b2a in RGB, HSL and CMYK?
In RGB, #040b2a is rgb(4, 11, 42), in HSL hsl(229, 83%, 9%) and in CMYK 90%, 74%, 0%, 84%. Browse more shades of black with names and hex codes.
What colors pair well with #040b2a?
Muted gold, burgundy, and dusty rose all bring out the blue in #040b2a better than gray does. Use warm accents sparingly, since the shade is already so dark and quiet.
Is #040b2a dark enough for white text?
Yes. White text on #040b2a reaches roughly 19.3:1 contrast, far past the 4.5:1 minimum for WCAG AA body text. It works well as a dark mode background.
Is #040b2a readable on white or black?
#040b2a has a 19.32:1 contrast ratio on white and 1.08: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.