#1F5797 Hex Color

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

Hex color #1f5797 graphic
#1f5797 is a dark, slightly muted blue with cool steel undertones and a serious, dependable mood. It suits finance, technology, healthcare, and government branding. Use it as a dominant UI background or supporting tone with warm ivory and muted burgundy. White text has about a 7.3:1 contrast ratio. The hex code for this color is #1f5797.

Questions about #1f5797

What is #1f5797 in RGB, HSL and CMYK?
In RGB, #1f5797 is rgb(31, 87, 151), in HSL hsl(212, 66%, 36%) and in CMYK 79%, 42%, 0%, 41%. Browse more shades of blue with names and hex codes.
What colors pair well with #1f5797?
#1f5797 pairs well with warm ivory, muted burgundy, and soft gray because those tones balance its cool steel undertone while keeping layouts serious, readable, professional, and composed across digital interfaces. Use ivory for backgrounds, burgundy as an accent, and gray for secondary surfaces.
What mood and applications suit #1f5797?
#1f5797 reads as a cool, dependable blue, with its dark value and steel undertones suggesting stability, focus, and authority rather than playfulness in visual systems built around trust and clarity. It works especially well for finance, technology, healthcare, and government interfaces.
Is #1f5797 readable on white or black?
#1f5797 has a 7.32:1 contrast ratio on white and 2.86: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.