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

#040d54 is a near-black, authoritative blue with deep saturation. Because this shade is so dark, white text offers excellent legibility against it, achieving a 17.6:1 contrast ratio. Use it as a solid background color for professional finance or security interfaces rather than for small, fine details. The hex code for this moody, serious blue is #040d54.
Questions about #040d54
What is #040d54 in RGB, HSL and CMYK?
In RGB, #040d54 is rgb(4, 13, 84), in HSL hsl(233, 91%, 17%) and in CMYK 95%, 85%, 0%, 67%. Browse more shades of blue with names and hex codes.
Where does #040d54 work best in UI design?
#040d54 works best as a primary background color for high-security or financial applications where authority is paramount. Because it is extremely dark, keep your text white or very light to maintain the required contrast ratio for accessibility.
What makes #040d54 different from a standard navy?
Unlike a standard navy, #040d54 has almost no visible brightness, pushing it closer to a technical black. It provides the depth designers need to frame white UI elements without the harshness of a pure, flat black.
Is #040d54 readable on white or black?
#040d54 has a 17.63:1 contrast ratio on white and 1.19: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.