Hex Color #4070DE - Custom Color
Color Codes
HEX
#4070DE
RGB
rgb(64, 112, 222)
HSL
hsl(222, 71%, 56%)
CMYK
cmyk(71%, 50%, 0%, 13%)
HSV
hsv(222, 71%, 87%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 4.57:1
Pass - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 4.59:1
Pass - 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: #4070DE;
color: #4070DE;
border-color: #4070DE;
}
Tailwind CSS (with arbitrary values)
bg-[#4070DE]
text-[#4070DE]
border-[#4070DE]
// Example usage:
<div className="bg-[#4070DE]">