#040F42 Hex Color
An ultra dark and authoritative deep navy

This extremely dark, unsaturated navy projects serious authority and stability. Because it sits so close to black, #040f42 works best as a primary background for high-contrast, minimalist interfaces rather than large blocks of text. It provides an excellent, readable base for white type. Pair this shade with metallic accents or muted golds to avoid a muddy appearance in formal branding.
Questions about #040f42
What is #040f42 in RGB, HSL and CMYK?
In RGB, #040f42 is rgb(4, 15, 66), in HSL hsl(229, 89%, 14%) and in CMYK 94%, 77%, 0%, 74%. Browse more shades of blue with names and hex codes.
How should I use #040f42 in digital interface design?
#040f42 works best as a primary background color for modern, high-contrast layouts rather than as a text color. Because it is so close to black, it provides a softer, more sophisticated foundation for white or light-colored UI elements and iconography.
What colors pair best with the deep navy tone of #040f42?
This deep, moody shade is best complemented by metallic accents or muted golds to prevent it from looking muddy. You can also pair it with crisp whites or very light greys to maximize readability while maintaining a clean, professional aesthetic.
Is #040f42 readable on white or black?
#040f42 has a 18.22:1 contrast ratio on white and 1.15: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.