#342838 Hex Color

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

Hex color #342838 graphic
#342838 is a desaturated, dusky purple that leans toward charcoal. Its muted, matte quality makes it an excellent, somber choice for dark mode UI backgrounds where stark black feels too aggressive. This hex code provides strong contrast for white typography, though it can appear muddy when used for large, flat shapes. Pair it with soft cream or dusty rose to balance its inherent seriousness.

Questions about #342838

What is #342838 in RGB, HSL and CMYK?
In RGB, #342838 is rgb(52, 40, 56), in HSL hsl(285, 17%, 19%) and in CMYK 7%, 29%, 0%, 78%. Browse more shades of black with names and hex codes.
How should I use #342838 in UI design?
Use #342838 as a background base to provide high contrast for white text while avoiding the visual strain of pure black. It pairs beautifully with cream for highlights or dusty rose to add warmth to your interface.
Is #342838 readable on white or black?
#342838 has a 13.93:1 contrast ratio on white and 1.50: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.