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

Dark and heavily muted, #312742 is a dusky purple with gray-blue undertones. Its low saturation creates a serious, mysterious mood suited to dark-mode interfaces, luxury branding, and spiritual or gaming designs. Use it as a dominant background with pale lavender or warm ivory accents. The hex code #312742 supports white text at about 14:1 contrast.
Questions about #312742
What is #312742 in RGB, HSL and CMYK?
In RGB, #312742 is rgb(49, 39, 66), in HSL hsl(262, 26%, 21%) and in CMYK 26%, 41%, 0%, 74%.
What colors pair well with #312742?
Is #312742 a warm or cool color?
#312742 reads as a cool, muted purple because its gray-blue undertones outweigh its red warmth, giving the shade a serious, mysterious character that feels especially natural in dark interfaces and low-light visual themes.
Does #312742 work with white text?
#312742 works well with white text, reaching about a 14:1 contrast ratio and offering strong readability for dark backgrounds, though you should still check the final font size, weight, and surrounding colors in an accessibility checker.
Is #312742 readable on white or black?
#312742 has a 14.00:1 contrast ratio on white and 1.49: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.