#051F87 Hex Color

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

Hex color #051f87 graphic
This intense, saturated blue projects authority and traditional stability. Because it is quite dark, #051f87 performs best as a dominant background color in professional or corporate UI designs. White text offers excellent readability against this shade, ensuring high accessibility for body copy. For a modern, balanced palette, pair this hex code with a sharp, warm accent color rather than standard neutral grays.

Questions about #051f87

What is #051f87 in RGB, HSL and CMYK?
In RGB, #051f87 is rgb(5, 31, 135), in HSL hsl(228, 93%, 27%) and in CMYK 96%, 77%, 0%, 47%. Browse more shades of blue with names and hex codes.
What colors pair best with #051f87?
Because #051f87 is a deep, saturated navy, it works beautifully with high-contrast, warm accents like a vibrant terracotta or a crisp gold. Avoid muted or cool-toned grays, as they can make the overall design feel muddy rather than professional.
Is #051f87 suitable for text in UI design?
While #051f87 serves as a fantastic, stable background color, it is generally too dark for body text unless paired with very light, off-white, or cream shades. Ensure your text remains high-contrast, like pure white or very pale gray, to maintain readability.
Is #051f87 readable on white or black?
#051f87 has a 13.52:1 contrast ratio on white and 1.55: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.