#040F6F Hex Color

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

Hex color #040f6f graphic
This intense, saturated navy carries a heavy, serious weight, perfect for corporate branding or moody interface design. Because #040f6f is so dark, avoid using it as a text color; instead, use it as a dominant background where crisp white type can provide high-contrast readability. Pair it with soft cream or muted gold to cut its cold, formal edge. The hex code for this deep shade is #040f6f.

Questions about #040f6f

What is #040f6f in RGB, HSL and CMYK?
In RGB, #040f6f is rgb(4, 15, 111), in HSL hsl(234, 93%, 23%) and in CMYK 96%, 86%, 0%, 56%. Browse more shades of blue with names and hex codes.
How should #040f6f be used in UI design?
#040f6f is too dark for body text, so apply it as a full-page background or primary branding element. This heavy navy creates a solid, trustworthy foundation for white or light silver typography to sit upon, ensuring your interface maintains high legibility.
Which colors complement #040f6f?
This saturated shade pairs well with soft, muted tones to balance its formal intensity. Try using cream or light metallic golds as accent colors, as these warm, neutral hues soften the cold, rigid feel of this deep navy blue.
Is #040f6f readable on white or black?
#040f6f has a 16.11:1 contrast ratio on white and 1.30: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.