Hex Color #516DBA - Custom Color
Color Codes
HEX
#516DBA
RGB
rgb(81, 109, 186)
HSL
hsl(224, 43%, 52%)
CMYK
cmyk(56%, 41%, 0%, 27%)
HSV
hsv(224, 56%, 73%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 4.95:1
Pass - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 4.25: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: #516DBA;
color: #516DBA;
border-color: #516DBA;
}
Tailwind CSS (with arbitrary values)
bg-[#516DBA]
text-[#516DBA]
border-[#516DBA]
// Example usage:
<div className="bg-[#516DBA]">