#331881#331881
#331881 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.161 H 285.0°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).
Color values
| HEX | #331881 |
|---|---|
| RGB | rgb(51, 24, 129) |
| HSL | hsl(255, 69%, 30%) |
| HSV | hsv(255, 81%, 51%) |
| CMYK | cmyk(60.5%, 81.4%, 0%, 49.4%) |
| CIE-LAB | lab(19.81, 40.82, -53.88) |
| CIE-LCH | lch(19.81, 67.60, 307.15°) |
| OKLab | oklab(32.71% 0.0417 -0.1552) |
| OKLCH | oklch(32.71% 0.161 285) |
| XYZ | xyz(5.6531, 2.9417, 21.0345) |
| Luminance | 0.0294 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.19
Royal
#0C1793
ΔE00 4.33
Midnight Blue
#191970
ΔE00 4.40
Indigo
#4B0082
ΔE00 4.95
Darkblue
#00008B
ΔE00 5.37
Navy
#000080
ΔE00 5.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#331881 #668118
analogous
#183181 #331881 #681881
triadic
#331881 #813318 #188133
tetradic
#331881 #811831 #668118 #188168
square
#331881 #811831 #668118 #188168
split-complementary
#331881 #816818 #318118
monochromatic
#0A051A #1F0E4D #331881 #4722B5 #6339DA
Accessibility & contrast
On white
13.22
#331881 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#331881 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #331881
13.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##331881 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##331881 | 1.00 | 13.22 | 1.59 | 13.22 |
| #FFFFFF | 13.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#05374C
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #331881; /* rgb */ color: rgb(51, 24, 129); /* oklch */ color: oklch(32.7% 0.161 285.0);
Tailwind
colors: {
custom: {
50: '#7559a7',
500: '#331881',
950: '#000000',
},
}SCSS
$custom: #331881; $custom-light: #7559a7; $custom-dark: #000000;
JSON
{
"hex": "#331881",
"rgb": {
"r": 51,
"g": 24,
"b": 129
},
"hsl": {
"h": 255.429,
"s": 68.627,
"l": 30
},
"oklch": {
"l": 0.32714,
"c": 0.16075,
"h": 285
},
"luminance": 0.02942
}Semantic roles & 50–950 ramp
primary
#331881
secondary
#97B540
accent
#EB3CBE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F