#313340 Hex Color

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

Hex color #313340 graphic
#313340 is a dim, ashy indigo that functions well as a moody base for dark mode interfaces. Its muted, dusty quality keeps it from feeling too intense or harsh. Because the tone is so dark, white text provides clear legibility with a 12.5:1 contrast ratio. If you want to understand the basics of mixing black, use this hex code as a practical point of comparison.

Questions about #313340

What is #313340 in RGB, HSL and CMYK?
In RGB, #313340 is rgb(49, 51, 64), in HSL hsl(232, 13%, 22%) and in CMYK 23%, 20%, 0%, 75%. Browse more shades of black with names and hex codes.
Does #313340 work well for text-heavy interfaces?
#313340 creates an excellent background for white or light gray typography because it offers high contrast without the harshness of pure black. Its muted, ashy undertones reduce eye strain while maintaining a professional, sophisticated appearance in digital dark mode environments.
What colors pair naturally with #313340?
This ashy indigo pairs effectively with soft, desaturated neutrals like slate or cool grays to maintain a balanced, monochromatic look. For a subtle pop of contrast, consider using muted accents like dusty rose or soft sage, which complement its cooler temperature without overpowering the depth.
Is #313340 readable on white or black?
#313340 has a 12.51:1 contrast ratio on white and 1.67: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.