#331880#331880
#331880 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.160 H 285.3°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).
Color values
| HEX | #331880 |
|---|---|
| RGB | rgb(51, 24, 128) |
| HSL | hsl(256, 68%, 30%) |
| HSV | hsv(256, 81%, 50%) |
| CMYK | cmyk(60.2%, 81.3%, 0%, 49.8%) |
| CIE-LAB | lab(19.70, 40.53, -53.42) |
| CIE-LCH | lch(19.70, 67.05, 307.18°) |
| OKLab | oklab(32.61% 0.042 -0.1539) |
| OKLCH | oklch(32.61% 0.16 285.3) |
| XYZ | xyz(5.5870, 2.9152, 20.6862) |
| Luminance | 0.0292 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.21
Midnight Blue
#191970
ΔE00 4.32
Royal
#0C1793
ΔE00 4.44
Indigo
#4B0082
ΔE00 4.95
Darkblue
#00008B
ΔE00 5.44
Navy
#000080
ΔE00 5.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#331880 #658018
analogous
#183180 #331880 #671880
triadic
#331880 #803318 #188033
tetradic
#331880 #801831 #658018 #188067
square
#331880 #801831 #658018 #188067
split-complementary
#331880 #806718 #318018
monochromatic
#0A051A #1E0E4C #331880 #4822B4 #6239DA
Accessibility & contrast
On white
13.26
#331880 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#331880 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #331880
13.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##331880 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##331880 | 1.00 | 13.26 | 1.58 | 13.26 |
| #FFFFFF | 13.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003283
Deuteranopia (green-blind)
#002C7E
Tritanopia (blue-blind)
#07374C
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #331880; /* rgb */ color: rgb(51, 24, 128); /* oklch */ color: oklch(32.6% 0.160 285.3);
Tailwind
colors: {
custom: {
50: '#7559a6',
500: '#331880',
950: '#000000',
},
}SCSS
$custom: #331880; $custom-light: #7559a6; $custom-dark: #000000;
JSON
{
"hex": "#331880",
"rgb": {
"r": 51,
"g": 24,
"b": 128
},
"hsl": {
"h": 255.577,
"s": 68.421,
"l": 29.804
},
"oklch": {
"l": 0.32607,
"c": 0.15955,
"h": 285.3
},
"luminance": 0.02916
}Semantic roles & 50–950 ramp
primary
#331880
secondary
#96B440
accent
#EB3DBE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F