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

This near-black indigo offers a serious, moody foundation for dark mode interfaces. Because it is highly unsaturated and dark, it provides excellent contrast for white text or bright, neon accents. Avoid using it alongside muted grays, as it can appear muddy without a sharp highlight to offset its intensity. The hex code for this color is #171242.
Questions about #171242
What is #171242 in RGB, HSL and CMYK?
In RGB, #171242 is rgb(23, 18, 66), in HSL hsl(246, 57%, 16%) and in CMYK 65%, 73%, 0%, 74%.
How should I use #171242 in a website design?
#171242 works best as a primary background color for dark-themed UI components. It creates a stable, non-distracting environment that allows vibrant neon accents or crisp white typography to stand out significantly, providing a modern alternative to standard pitch black backgrounds.
Does #171242 lean warm or cool in appearance?
This color sits on the cooler end of the spectrum due to its strong indigo base, which separates it from neutral charcoal grays. The blue undertones give it a subtle, mysterious depth that feels more intentional and less flat than pure black.
Is #171242 readable on white or black?
#171242 has a 17.47:1 contrast ratio on white and 1.20: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.