#040E1C Hex Color

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

Hex color #040e1c graphic
#040e1c is an almost black blue with a muted, sooty cast. It reads more charcoal than navy at first glance, which suits dark mode backgrounds, fintech branding, and law enforcement palettes. Its low lightness gives white text strong contrast, roughly 19.4:1, so small type stays readable. Just know it can look flat next to pure white, so soften the step with off-whites. The hex code #040e1c works best as a dominant base rather than an accent.

Questions about #040e1c

What is #040e1c in RGB, HSL and CMYK?
In RGB, #040e1c is rgb(4, 14, 28), in HSL hsl(215, 75%, 6%) and in CMYK 86%, 50%, 0%, 89%.
What colors pair well with #040e1c?
#040e1c pairs well with warm metallics like brass or amber, which cut through its sooty depth better than cool grays do. For text and UI elements, stick with soft off-whites instead of pure white to avoid a harsh step.
Is #040e1c a good background color for dark mode?
Yes. Its very low lightness keeps glare down, and white text reaches about 19.4:1 contrast, well past the 4.5:1 needed for WCAG AA body text. Pair it with off-white surfaces for layered layouts.
Is #040e1c readable on white or black?
#040e1c has a 19.35:1 contrast ratio on white and 1.08: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.