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

Closer to midnight ink than a true blue, #040b3c is a navy so dark it borders on black. That low lightness gives white text about 18.8:1 contrast, making the hex code a strong pick for dark mode backgrounds and finance or legal branding. It flatters warm brass and burgundy, which keep its cool tone from going flat.
Questions about #040b3c
What is #040b3c in RGB, HSL and CMYK?
In RGB, #040b3c is rgb(4, 11, 60), in HSL hsl(233, 88%, 13%) and in CMYK 93%, 82%, 0%, 76%. Browse more shades of black with names and hex codes.
What colors pair well with #040b3c?
Warm brass, gold, and burgundy lift #040b3c and keep its cool tone from reading flat. For text, crisp white or pale cream gives the cleanest legibility.
Is #040b3c readable on white or black?
#040b3c has a 18.77:1 contrast ratio on white and 1.11: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.