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

#333340 is a dark, muted indigo-purple with gray undertones and a matte, ashy appearance. Its low saturation creates a serious, mysterious mood suited to dark-mode interfaces, night-sky themes, and spiritual or luxury branding. Use the hex code #333340 as a dominant background; white text provides about 12.4:1 contrast for clear WCAG AA body copy.
Questions about #333340
What is #333340 in RGB, HSL and CMYK?
In RGB, #333340 is rgb(51, 51, 64), in HSL hsl(240, 11%, 23%) and in CMYK 20%, 20%, 0%, 75%. Browse more shades of black with names and hex codes.
What colors pair well with #333340?
#333340 pairs well with white for high-contrast text, pale lavender for a quiet tonal palette, and muted gold for restrained warmth, preserving its cool, ashy character while adding softness or measured brightness to layouts.
Is #333340 warm or cool?
#333340 reads as a cool color because its blue-violet bias sits above neutral gray, while its low saturation and dark value soften that effect; it feels subdued and serious rather than vividly purple beside brighter colors.
Where does #333340 work best in design?
#333340 works well as a dark-mode background and in night-sky or luxury branding, where its muted indigo cast adds depth without pure black's harshness; pair it with lighter surfaces and accents to preserve clear visual hierarchy.
Is #333340 readable on white or black?
#333340 has a 12.43:1 contrast ratio on white and 1.68: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.