#04172A Hex Color

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

Hex color #04172a graphic
This near-black shade carries a dusty, muted quality that feels grounded and serious. Because it is so dark, #04172a acts as an excellent base for high-contrast UI designs. White text stands out sharply against it, making this hex code a reliable choice for dark mode interfaces or professional branding. Pair it with soft cream or muted gold to cut its inherent chill.

Questions about #04172a

What is #04172a in RGB, HSL and CMYK?
In RGB, #04172a is rgb(4, 23, 42), in HSL hsl(210, 83%, 9%) and in CMYK 90%, 45%, 0%, 84%. Browse more shades of blue with names and hex codes.
Why does #04172a work better than pure black for UI design?
Using #04172a instead of absolute black reduces eye strain in dark mode interfaces by creating a softer, more natural contrast. It feels less harsh against white text while maintaining the professional depth and clarity required for modern web readability.
Which colors pair effectively with #04172a?
Because #04172a is a muted, near-black blue, it balances beautifully with high-contrast, warmer tones like cream or muted gold to cut its inherent chill. These pairings create a sophisticated, grounded aesthetic that avoids feeling overly clinical or cold.
Is #04172a readable on white or black?
#04172a has a 18.08:1 contrast ratio on white and 1.16: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.