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

#040e3f is a very dark, muted blue with cool violet undertones and a serious, controlled mood. Its low lightness suits security, finance, government, and technology branding, especially as a dominant dark-mode background. Pair it with burgundy or warm gray for contrast. White text remains highly legible, making this hex code practical for accessible interfaces and formal designs.
Questions about #040e3f
What is #040e3f in RGB, HSL and CMYK?
In RGB, #040e3f is rgb(4, 14, 63), in HSL hsl(230, 88%, 13%) and in CMYK 94%, 78%, 0%, 75%. Browse more shades of black with names and hex codes.
What colors pair well with #040e3f?
Does #040e3f read as a warm or cool color?
#040e3f reads as a cool color because its deep blue base carries subtle violet undertones, giving it a controlled, formal character rather than the warmth associated with red, orange, or yellow-based hues.
Is #040e3f readable on white or black?
#040e3f has a 18.42:1 contrast ratio on white and 1.13: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.