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

The hex code #000040 is an almost-black blue with strong saturation and a cold, inky appearance. Its serious, controlled mood suits security, finance, government, and corporate branding. Use it as a dominant dark UI or background color with white text, which achieves about a 19.6:1 contrast ratio. Burgundy or muted teal can add warmth without weakening its authority.
Questions about #000040
What is #000040 in RGB, HSL and CMYK?
In RGB, #000040 is rgb(0, 0, 64), in HSL hsl(240, 100%, 13%) and in CMYK 100%, 100%, 0%, 75%.
What colors pair well with #000040?
Is #000040 warm or cool?
#000040 reads as a strongly cool color because its blue base and near-black value create a cold, inky impression. It feels more formal and restrained than brighter navy shades, making it useful where authority matters.
Where should #000040 be used?
Use #000040 for dark UI surfaces, headers, navigation, security products, finance interfaces, or formal corporate branding where a serious, controlled mood fits. Pair it with generous light space and clear accent colors to prevent the design from feeling too heavy.
Is #000040 readable on white or black?
#000040 has a 19.55:1 contrast ratio on white and 1.07: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.