#04042B Hex Color

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

Hex color #04042b graphic
This near-black navy is moody and somber, providing a sophisticated alternative to pure black in web interfaces. Because it holds significant weight, #04042b functions best as a full-screen background or for large typography. White text remains perfectly legible against this dark hex code, offering high contrast for readability. Pair it with soft metallics or muted pastels to soften its severe, authoritative presence.

Questions about #04042b

What is #04042b in RGB, HSL and CMYK?
In RGB, #04042b is rgb(4, 4, 43), in HSL hsl(240, 83%, 9%) and in CMYK 91%, 91%, 0%, 83%. Browse more shades of black with names and hex codes.
Where should I use #04042b instead of standard black?
Use #04042b when you want to reduce visual harshness while maintaining a high-contrast foundation for your design. It creates a more sophisticated, premium feel on large backgrounds or text-heavy interfaces compared to the stark, sometimes jarring nature of absolute black.
Which colors pair well with #04042b in a layout?
To soften its intense presence, pair #04042b with soft, desaturated metallics like silver or muted pastels. These lighter accents create a balanced visual hierarchy, allowing the dark navy depth to anchor the design while keeping the overall user experience approachable and readable.
Is #04042b readable on white or black?
#04042b has a 19.85:1 contrast ratio on white and 1.05: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.