#28171E Hex Color
Online color picker to view shades, tints, color codes, and complementary colors

This extremely dark, desaturated pink balances dusty grey undertones with a moody, inky presence. Because #28171e is so close to black, it functions best as a soft, sophisticated alternative to a stark charcoal background. It offers excellent contrast for white text, though it can look muddy in small, fine-detail applications. Use this hex code to anchor dark, elegant branding or high-contrast UI layouts.
Questions about #28171e
What is #28171e in RGB, HSL and CMYK?
In RGB, #28171e is rgb(40, 23, 30), in HSL hsl(335, 27%, 12%) and in CMYK 0%, 42%, 25%, 84%. Browse more shades of black with names and hex codes.
How should I use #28171e in user interfaces?
#28171e works best as a primary background color to anchor elegant, high-contrast layouts. Because it is so close to black, pair it with crisp white or cream text to ensure the content remains readable while maintaining a premium, soft aesthetic.
Does #28171e feel warmer or cooler than standard charcoal?
This color leans significantly warmer than a standard neutral charcoal due to its subtle pink base. The underlying warmth makes it feel more organic and inviting than a harsh, true black, helping to avoid the sterility often found in dark-mode interface designs.
Is #28171e readable on white or black?
#28171e has a 17.05:1 contrast ratio on white and 1.23: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.