#331E84#331E84
#331E84 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.158 H 283.4°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).
Color values
| HEX | #331E84 |
|---|---|
| RGB | rgb(51, 30, 132) |
| HSL | hsl(252, 63%, 32%) |
| HSV | hsv(252, 77%, 52%) |
| CMYK | cmyk(61.4%, 77.3%, 0%, 48.2%) |
| CIE-LAB | lab(21.20, 38.67, -53.48) |
| CIE-LCH | lch(21.20, 66.00, 305.87°) |
| OKLab | oklab(33.78% 0.0366 -0.1541) |
| OKLCH | oklch(33.78% 0.158 283.4) |
| XYZ | xyz(5.9931, 3.2979, 22.1461) |
| Luminance | 0.0330 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.20
Indigo (survey)
#380282
ΔE00 4.45
Midnight Blue
#191970
ΔE00 4.47
Indigo
#4B0082
ΔE00 5.89
Darkblue
#00008B
ΔE00 6.13
Cobalt Blue
#030AA7
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#331E84 #6F841E
analogous
#1E3C84 #331E84 #661E84
triadic
#331E84 #84331E #1E8433
tetradic
#331E84 #841E3C #6F841E #1E8466
square
#331E84 #841E3C #6F841E #1E8466
split-complementary
#331E84 #84661E #3C841E
monochromatic
#0C0720 #201352 #331E84 #4629B6 #6447D5
Accessibility & contrast
On white
12.65
#331E84 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#331E84 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #331E84
12.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##331E84 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##331E84 | 1.00 | 12.65 | 1.66 | 12.65 |
| #FFFFFF | 12.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003687
Deuteranopia (green-blind)
#002F82
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #331e84; /* rgb */ color: rgb(51, 30, 132); /* oklch */ color: oklch(33.8% 0.158 283.4);
Tailwind
colors: {
custom: {
50: '#755da9',
500: '#331e84',
950: '#000000',
},
}SCSS
$custom: #331e84; $custom-light: #755da9; $custom-dark: #000000;
JSON
{
"hex": "#331e84",
"rgb": {
"r": 51,
"g": 30,
"b": 132
},
"hsl": {
"h": 252.353,
"s": 62.963,
"l": 31.765
},
"oklch": {
"l": 0.33781,
"c": 0.15843,
"h": 283.4
},
"luminance": 0.03298
}Semantic roles & 50–950 ramp
primary
#331E84
secondary
#A0B747
accent
#E642C4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F