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

#0040b4 is a dark, highly saturated blue with a cool, slightly violet cast and low lightness. Its serious, controlled character suits finance, security, technology, government, and moody interfaces. Use this hex code as a strong brand anchor or dark UI surface, pairing it with white text for clear small-body readability.
Questions about #0040b4
What is #0040b4 in RGB, HSL and CMYK?
In RGB, #0040b4 is rgb(0, 64, 180), in HSL hsl(219, 100%, 35%) and in CMYK 100%, 64%, 0%, 29%.
What colors pair well with #0040b4 in a design palette?
#0040b4 pairs well with white for sharp contrast, charcoal for a restrained interface, and muted orange or terracotta for warmth, while keeping warmer notes as small accents so its serious, high-saturation character remains the visual anchor.
Is #0040b4 readable on white or black?
#0040b4 has a 8.77:1 contrast ratio on white and 2.39: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.