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

This intense, deep indigo carries a serious and authoritative weight. It works best as a primary background color for modern dark modes or luxury branding, as it offers a sophisticated alternative to pure black. The hex code for this shade is #1f217f. Because it offers high contrast, white text remains readable and crisp when placed directly over it.
Questions about #1f217f
What is #1f217f in RGB, HSL and CMYK?
In RGB, #1f217f is rgb(31, 33, 127), in HSL hsl(239, 61%, 31%) and in CMYK 76%, 74%, 0%, 50%.
How does #1f217f perform in UI design?
#1f217f serves as a sophisticated background for modern dark mode interfaces because it maintains excellent contrast with white text while feeling more vibrant than standard black. It creates a premium, tech-focused aesthetic that feels professional and intentional.
What colors coordinate well with #1f217f?
Is #1f217f readable on white or black?
#1f217f has a 13.27:1 contrast ratio on white and 1.58: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.