#40403F Hex Color

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

Hex color #40403f graphic
Dark grey with a faint warm undertone. #40403f works best as a base in dark interfaces, where white text hits about 10.4:1 contrast and clears WCAG AA easily. It pairs well with muted ochre or dusty blue accents. At full scale it can read flat, so give it texture or a lighter companion. The hex code #40403f sits just off pure grey, enough to feel softer than charcoal.

Questions about #40403f

What is #40403f in RGB, HSL and CMYK?
In RGB, #40403f is rgb(64, 64, 63), in HSL hsl(60, 1%, 25%) and in CMYK 0%, 0%, 2%, 75%. Browse more shades of gray with names and hex codes.
What text color works best on #40403f?
White text is the clear winner on #40403f, reaching about 10.4:1 contrast and clearing the WCAG AA minimum of 4.5:1 for small body text with room to spare. Black text falls far short, so keep type light.
What colors pair well with #40403f?
Muted ochre and dusty blue lift #40403f without breaking its calm, while terracotta adds warmth as a small accent. Cream also works when plain white feels too stark against it.
Is #40403f readable on white or black?
#40403f has a 10.37:1 contrast ratio on white and 2.02: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.