Hex Color #514581 - Custom Color
Color Codes
HEX
#514581
RGB
rgb(81, 69, 129)
HSL
hsl(252, 30%, 39%)
CMYK
cmyk(37%, 47%, 0%, 49%)
HSV
hsv(252, 47%, 51%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 8.34:1
Pass - WCAG AA (Normal Text)
Pass - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 2.52: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: #514581;
color: #514581;
border-color: #514581;
}
Tailwind CSS (with arbitrary values)
bg-[#514581]
text-[#514581]
border-[#514581]
// Example usage:
<div className="bg-[#514581]">