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