Hex Color #402938 - Custom Color
Color Codes
HEX
#402938
RGB
rgb(64, 41, 56)
HSL
hsl(321, 22%, 21%)
CMYK
cmyk(0%, 36%, 13%, 75%)
HSV
hsv(321, 36%, 25%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 13.19:1
Pass - WCAG AA (Normal Text)
Pass - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 1.59:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Recommended Text Color
For best readability on this background color, use white text.
Similar Colors
Color in Use
Card with colored border
Background with 20% opacity
CSS Code
.element {
background-color: #402938;
color: #402938;
border-color: #402938;
}
Tailwind CSS (with arbitrary values)
bg-[#402938]
text-[#402938]
border-[#402938]
// Example usage:
<div className="bg-[#402938]">