#040C34 Hex Color
A deep and serious near-black navy

This near-black navy is a grounded, serious tone with high saturation and minimal lightness. Because it is so dark, #040c34 provides an excellent high-contrast base for white or silver typography. Designers often use this shade for corporate branding and modern dark mode interfaces. It pairs effectively with muted gold accents to prevent the palette from feeling too cold or sterile.
Questions about #040c34
What is #040c34 in RGB, HSL and CMYK?
In RGB, #040c34 is rgb(4, 12, 52), in HSL hsl(230, 86%, 11%) and in CMYK 92%, 77%, 0%, 80%.
How should I use #040c34 in interface design?
#040c34 functions best as a sophisticated alternative to pure black for backgrounds or text. It maintains deep readability against white, silver, or muted gold while feeling significantly less harsh or flat than standard charcoal or black options.
Which color combinations work best with #040c34?
This deep navy anchors bright, high-contrast accents like crisp whites or metallic silver perfectly. To soften the look, introduce muted gold or warm cream to bridge the gap between the cold, saturated blue and more organic, inviting color tones.
Is #040c34 readable on white or black?
#040c34 has a 18.96:1 contrast ratio on white and 1.10: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.