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

This near-black grey provides a serious, muted foundation for professional interfaces and dark mode UI designs. Because it lacks strong undertones, #403f40 remains extremely neutral and acts as a stable base for bold accent colors. Its high contrast ratio makes white typography legible even at smaller font sizes. The hex code for this deep, dusty charcoal is #403f40.
Questions about #403f40
What is #403f40 in RGB, HSL and CMYK?
In RGB, #403f40 is rgb(64, 63, 64), in HSL hsl(300, 1%, 25%) and in CMYK 0%, 2%, 0%, 75%. Browse more shades of gray with names and hex codes.
Why is #403f40 effective for UI design?
#403f40 acts as a stable, high-contrast foundation that prevents visual fatigue in dark mode interfaces. Because it lacks strong color undertones, it allows bold accent colors to stand out clearly without clashing against the background, ensuring content remains readable and professional.
What colors pair well with #403f40?
This deep charcoal works best with vibrant, high-saturation accents to create visual interest. Try pairing it with a bright gold for a modern, luxurious tech feel or a warm terracotta to ground the neutral background with an earthy, sophisticated contrast.
Is #403f40 readable on white or black?
#403f40 has a 10.48:1 contrast ratio on white and 2.00: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.