Hex Color #021852 - Custom Color
Color Codes
HEX
#021852
RGB
rgb(2, 24, 82)
HSL
hsl(224, 95%, 16%)
CMYK
cmyk(98%, 71%, 0%, 68%)
HSV
hsv(224, 98%, 32%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 16.73:1
Pass - WCAG AA (Normal Text)
Pass - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 1.26: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: #021852;
color: #021852;
border-color: #021852;
}
Tailwind CSS (with arbitrary values)
bg-[#021852]
text-[#021852]
border-[#021852]
// Example usage:
<div className="bg-[#021852]">