#340872 Hex Color

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

Hex color #340872 graphic
Close to the skin of a black plum, #340872 is a dark shade of purple with a cool, blue-leaning undertone. Its low lightness suits dark mode backgrounds, luxury branding, and moody game UI, and white text over the hex code reaches about 14.8:1 contrast, clearing AA with room to spare.

Questions about #340872

What is #340872 in RGB, HSL and CMYK?
In RGB, #340872 is rgb(52, 8, 114), in HSL hsl(265, 87%, 24%) and in CMYK 54%, 93%, 0%, 55%. Browse more shades of purple with names and hex codes.
What text color works best on #340872?
White text reads best on #340872, reaching about 14.8:1 contrast, so it clears WCAG AA for small body text with room to spare. Black text fails badly here, so keep dark type off this background.
What colors pair well with #340872?
Warm gold or amber accents bring out its violet depth, while mauve tints keep a palette soft. Skip mid-tone purples beside it, since they tend to turn muddy fast.
Is #340872 readable on white or black?
#340872 has a 14.75:1 contrast ratio on white and 1.42: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.