#331D86#331D86
#331D86 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.162 H 283.1°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).
Color values
| HEX | #331D86 |
|---|---|
| RGB | rgb(51, 29, 134) |
| HSL | hsl(253, 64%, 32%) |
| HSV | hsv(253, 78%, 53%) |
| CMYK | cmyk(61.9%, 78.4%, 0%, 47.5%) |
| CIE-LAB | lab(21.22, 39.82, -54.71) |
| CIE-LCH | lch(21.22, 67.67, 306.05°) |
| OKLab | oklab(33.86% 0.0368 -0.1577) |
| OKLCH | oklch(33.86% 0.162 283.1) |
| XYZ | xyz(6.1063, 3.3034, 22.8655) |
| Luminance | 0.0330 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.95
Indigo (survey)
#380282
ΔE00 4.23
Midnight Blue
#191970
ΔE00 4.68
Indigo
#4B0082
ΔE00 5.73
Darkblue
#00008B
ΔE00 5.88
Cobalt Blue
#030AA7
ΔE00 5.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#331D86 #70861D
analogous
#1D3C86 #331D86 #671D86
triadic
#331D86 #86331D #1D8633
tetradic
#331D86 #861D3C #70861D #1D8667
square
#331D86 #861D3C #70861D #1D8667
split-complementary
#331D86 #86671D #3C861D
monochromatic
#0D0721 #201254 #331D86 #4628B8 #6546D7
Accessibility & contrast
On white
12.64
#331D86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#331D86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #331D86
12.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##331D86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##331D86 | 1.00 | 12.64 | 1.66 | 12.64 |
| #FFFFFF | 12.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.64 | 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: #331d86; /* rgb */ color: rgb(51, 29, 134); /* oklch */ color: oklch(33.9% 0.162 283.1);
Tailwind
colors: {
custom: {
50: '#765caa',
500: '#331d86',
950: '#000000',
},
}SCSS
$custom: #331d86; $custom-light: #765caa; $custom-dark: #000000;
JSON
{
"hex": "#331d86",
"rgb": {
"r": 51,
"g": 29,
"b": 134
},
"hsl": {
"h": 252.571,
"s": 64.417,
"l": 31.961
},
"oklch": {
"l": 0.33858,
"c": 0.16194,
"h": 283.1
},
"luminance": 0.03304
}Semantic roles & 50–950 ramp
primary
#331D86
secondary
#A1B946
accent
#E740C4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F