Hex Color #210048 - Custom Color
Color Codes
HEX
#210048
RGB
rgb(33, 0, 72)
HSL
hsl(267, 100%, 14%)
CMYK
cmyk(54%, 100%, 0%, 72%)
HSV
hsv(267, 100%, 28%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 18.13:1
Pass - WCAG AA (Normal Text)
Pass - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 1.16: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: #210048;
color: #210048;
border-color: #210048;
}
Tailwind CSS (with arbitrary values)
bg-[#210048]
text-[#210048]
border-[#210048]
// Example usage:
<div className="bg-[#210048]">