#1F1B96 Hex Color
Online color picker to view shades, tints, color codes, and complementary colors

This intense, dark indigo carries a heavy, serious presence suitable for moody backgrounds or corporate branding. Because it offers strong contrast with white text, #1f1b96 works well as a grounding base for dark mode interfaces. It feels more authoritative than black and sits comfortably alongside metallic accents. The hex code for this shade is #1f1b96.
Questions about #1f1b96
What is #1f1b96 in RGB, HSL and CMYK?
In RGB, #1f1b96 is rgb(31, 27, 150), in HSL hsl(242, 69%, 35%) and in CMYK 79%, 82%, 0%, 41%.
How should I use #1f1b96 in UI design?
#1f1b96 serves best as a primary action color or a grounding background element in dark mode designs. Its high saturation commands attention, making it ideal for buttons or sidebars when paired with clean, high-contrast white typography for optimal legibility.
What colors pair well with #1f1b96?
Is #1f1b96 readable on white or black?
#1f1b96 has a 12.68:1 contrast ratio on white and 1.65: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.