Hex Color #310649 - Custom Color
Color Codes
HEX
#310649
RGB
rgb(49, 6, 73)
HSL
hsl(279, 85%, 15%)
CMYK
cmyk(33%, 92%, 0%, 71%)
HSV
hsv(279, 92%, 29%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 16.76:1
Pass - WCAG AA (Normal Text)
Pass - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 1.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: #310649;
color: #310649;
border-color: #310649;
}
Tailwind CSS (with arbitrary values)
bg-[#310649]
text-[#310649]
border-[#310649]
// Example usage:
<div className="bg-[#310649]">