#1A1F71 Hex Color

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

Hex color #1a1f71 graphic
This intense indigo carries a cool, authoritative weight that commands attention without shouting. Because it is quite dark, #1a1f71 works best as a primary background color for modern dark-mode interfaces, especially when paired with crisp white text for high contrast. The hex code #1a1f71 offers stability and seriousness, though it can feel slightly clinical if not balanced with warmer, organic accent tones in your design.

Questions about #1a1f71

What is #1a1f71 in RGB, HSL and CMYK?
In RGB, #1a1f71 is rgb(26, 31, 113), in HSL hsl(237, 63%, 27%) and in CMYK 77%, 73%, 0%, 56%.
What colors pair best with #1a1f71?
This intense indigo works exceptionally well when balanced against terracotta or soft gold accents, which counteract its clinical, cool edge. These warm, organic tones prevent the deep blue from feeling too stark or industrial in your final layout.
Is #1a1f71 readable on white or black?
#1a1f71 has a 14.20:1 contrast ratio on white and 1.47: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.