#40171F Hex Color

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

Hex color #40171f graphic
#40171f is a very dark, dusty red with a muted, earthy quality. Because it sits at the edge of black, this shade works best as an accent color rather than a primary background, where it can appear muddy. It pairs well with metallic gold or cream for a traditional, formal look. The hex code for this moody tone is #40171f.

Questions about #40171f

What is #40171f in RGB, HSL and CMYK?
In RGB, #40171f is rgb(64, 23, 31), in HSL hsl(348, 47%, 17%) and in CMYK 0%, 64%, 52%, 75%. Browse more shades of pink with names and hex codes.
What colors pair best with #40171f?
#40171f creates a sophisticated, formal appearance when paired with metallic gold or creamy whites. For a more subtle, grounded aesthetic, consider layering it alongside charcoal or soft neutral tones to keep the overall look balanced rather than heavy.
Is #40171f suitable for large background areas?
Using #40171f as a primary background is often discouraged because its extreme darkness can appear muddy or visually overwhelming. It functions most effectively as a distinct accent color or in small, intentional blocks where its muted, earthy richness can truly stand out.
Is #40171f readable on white or black?
#40171f has a 15.43:1 contrast ratio on white and 1.36: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.