#0042B5 Hex Color

Online color picker to view shades, tints, color codes, and complementary colors

Hex color #0042b5 graphic
#0042b5 is a dark, saturated blue with a cool, slightly violet cast. Its strong chroma gives interfaces and branding a serious, dependable feel, while its depth adds mystery. Use it as a dominant UI background or security-focused accent. White text reaches about 8.6:1 contrast here. The hex code #0042b5 also suits finance, technology, and government designs.

Questions about #0042b5

What is #0042b5 in RGB, HSL and CMYK?
In RGB, #0042b5 is rgb(0, 66, 181), in HSL hsl(218, 100%, 35%) and in CMYK 100%, 64%, 0%, 29%.
What colors pair well with #0042b5?
Warm amber or orange accents create a complementary contrast with #0042b5, while white provides a crisp counterpoint for text and interface surfaces, especially across dashboards, navigation, buttons, and branded layouts. Pale blue or cool gray can soften the palette while preserving its professional feel.
Is #0042b5 warm or cool?
#0042b5 is a cool, dark blue with a slight violet cast, giving it a dependable and focused mood rather than a warm or energetic one in interface and brand color systems. Its saturated depth is especially effective for technology, finance, government, and security-focused designs.
Is #0042b5 readable on white or black?
#0042b5 has a 8.58:1 contrast ratio on white and 2.44: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.