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

A very dark, cool blue, #040c4c has strong saturation but little lightness, giving it a serious, controlled feel. The hex code #040c4c suits security, finance, government, and formal interfaces as a dominant background. White text has about an 18.1:1 contrast ratio here, making it practical for accessible body copy and crisp light accents.
Questions about #040c4c
What is #040c4c in RGB, HSL and CMYK?
In RGB, #040c4c is rgb(4, 12, 76), in HSL hsl(233, 90%, 16%) and in CMYK 95%, 84%, 0%, 70%.
What colors pair well with #040c4c?
White and pale blue create crisp contrast with #040c4c, while muted gold or warm beige can soften its cool, formal character; lighter tints work well for accents, while brighter complements are best used sparingly.
Does #040c4c read as warm or cool?
#040c4c reads as a cool, serious blue because its low lightness and strong saturation create a controlled, authoritative appearance rather than a soft or playful one. It suits focused, formal visual systems.
Can I use white text with #040c4c?
Yes, white text on #040c4c has about an 18.1:1 contrast ratio, exceeding WCAG AA and AAA thresholds for normal text and making the pairing suitable for body copy when rendered accurately. Still check font size, weight, and nearby colors.
Is #040c4c readable on white or black?
#040c4c has a 18.07: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.