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

This dark, ashy brown feels grounded and moody, bordering on an inky charcoal. Because it is so desaturated, the hex code #402d23 works best as a solid background or a grounding accent rather than for fine details. White text offers excellent contrast against it, making it a reliable choice for dark mode UI or vintage-inspired branding that needs a serious, understated look.
Questions about #402d23
What is #402d23 in RGB, HSL and CMYK?
In RGB, #402d23 is rgb(64, 45, 35), in HSL hsl(21, 29%, 19%) and in CMYK 0%, 30%, 45%, 75%. Browse more shades of black with names and hex codes.
What is the best way to use #402d23 in UI design?
#402d23 excels as a soft alternative to pure black for website backgrounds and UI containers. It provides enough depth to feel grounded while remaining gentle on the eyes when paired with off-white or light beige typography for high readability.
Which colors complement this ashy brown?
This shade pairs beautifully with creamy white or muted sage to balance its heavy, dark nature. Because it is desaturated, it also works well alongside richer, muted earth tones or metallic accents like brushed bronze to enhance a sophisticated, vintage look.
Is #402d23 readable on white or black?
#402d23 has a 12.98:1 contrast ratio on white and 1.61: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.