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

Darker than most navies, #040c2c sits just shy of black with a cold, ashy undertone. The hex code earns its keep as a dominant base for dark mode interfaces, formal branding, and moody layouts. White text hits about 19.2:1 contrast on it, so even small copy stays readable. Muted gold or burgundy accents keep it from feeling flat.
Questions about #040c2c
What is #040c2c in RGB, HSL and CMYK?
In RGB, #040c2c is rgb(4, 12, 44), in HSL hsl(228, 83%, 9%) and in CMYK 91%, 73%, 0%, 83%. Browse more shades of black with names and hex codes.
What colors pair well with #040c2c?
Muted gold, burgundy, and dusty slate blue all flatter #040c2c without clashing with its somber tone. Very bright accents tend to wash it out, so keep pairings low-key and let the navy anchor the palette.
Is #040c2c readable on white or black?
#040c2c has a 19.19:1 contrast ratio on white and 1.09: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.