Hex Color #1F1AEE - Custom Color
Color Codes
HEX
#1F1AEE
RGB
rgb(31, 26, 238)
HSL
hsl(241, 86%, 52%)
CMYK
cmyk(87%, 89%, 0%, 7%)
HSV
hsv(241, 89%, 93%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 8.60:1
Pass - WCAG AA (Normal Text)
Pass - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 2.44: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: #1F1AEE;
color: #1F1AEE;
border-color: #1F1AEE;
}
Tailwind CSS (with arbitrary values)
bg-[#1F1AEE]
text-[#1F1AEE]
border-[#1F1AEE]
// Example usage:
<div className="bg-[#1F1AEE]">