Hex Color #340944 - Custom Color
Color Codes
HEX
#340944
RGB
rgb(52, 9, 68)
HSL
hsl(284, 77%, 15%)
CMYK
cmyk(24%, 87%, 0%, 73%)
HSV
hsv(284, 87%, 27%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 16.55:1
Pass - WCAG AA (Normal Text)
Pass - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 1.27: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: #340944;
color: #340944;
border-color: #340944;
}
Tailwind CSS (with arbitrary values)
bg-[#340944]
text-[#340944]
border-[#340944]
// Example usage:
<div className="bg-[#340944]">