#331C86#331C86
#331C86 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.163 H 283.3°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).
Color values
| HEX | #331C86 |
|---|---|
| RGB | rgb(51, 28, 134) |
| HSL | hsl(253, 65%, 32%) |
| HSV | hsv(253, 79%, 53%) |
| CMYK | cmyk(61.9%, 79.1%, 0%, 47.5%) |
| CIE-LAB | lab(21.04, 40.35, -55.01) |
| CIE-LCH | lch(21.04, 68.22, 306.26°) |
| OKLab | oklab(33.73% 0.0375 -0.1586) |
| OKLCH | oklch(33.73% 0.163 283.3) |
| XYZ | xyz(6.0822, 3.2551, 22.8574) |
| Luminance | 0.0326 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.90
Indigo (survey)
#380282
ΔE00 4.01
Midnight Blue
#191970
ΔE00 4.70
Indigo
#4B0082
ΔE00 5.57
Darkblue
#00008B
ΔE00 5.71
Cobalt Blue
#030AA7
ΔE00 5.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#331C86 #6F861C
analogous
#1C3A86 #331C86 #681C86
triadic
#331C86 #86331C #1C8633
tetradic
#331C86 #861C3A #6F861C #1C8668
square
#331C86 #861C3A #6F861C #1C8668
split-complementary
#331C86 #86681C #3A861C
monochromatic
#0C0721 #201153 #331C86 #4627B9 #6444D8
Accessibility & contrast
On white
12.72
#331C86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#331C86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #331C86
12.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##331C86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##331C86 | 1.00 | 12.72 | 1.65 | 12.72 |
| #FFFFFF | 12.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #331c86; /* rgb */ color: rgb(51, 28, 134); /* oklch */ color: oklch(33.7% 0.163 283.3);
Tailwind
colors: {
custom: {
50: '#765caa',
500: '#331c86',
950: '#000000',
},
}SCSS
$custom: #331c86; $custom-light: #765caa; $custom-dark: #000000;
JSON
{
"hex": "#331c86",
"rgb": {
"r": 51,
"g": 28,
"b": 134
},
"hsl": {
"h": 253.019,
"s": 65.432,
"l": 31.765
},
"oklch": {
"l": 0.33731,
"c": 0.16295,
"h": 283.3
},
"luminance": 0.03256
}Semantic roles & 50–950 ramp
primary
#331C86
secondary
#A0B945
accent
#E83FC4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F