#331C85#331C85
#331C85 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.162 H 283.5°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).
Color values
| HEX | #331C85 |
|---|---|
| RGB | rgb(51, 28, 133) |
| HSL | hsl(253, 65%, 32%) |
| HSV | hsv(253, 79%, 52%) |
| CMYK | cmyk(61.7%, 78.9%, 0%, 47.8%) |
| CIE-LAB | lab(20.93, 40.04, -54.55) |
| CIE-LCH | lch(20.93, 67.67, 306.28°) |
| OKLab | oklab(33.63% 0.0378 -0.1572) |
| OKLCH | oklch(33.63% 0.162 283.5) |
| XYZ | xyz(6.0128, 3.2274, 22.4919) |
| Luminance | 0.0323 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.99
Indigo (survey)
#380282
ΔE00 4.00
Midnight Blue
#191970
ΔE00 4.59
Indigo
#4B0082
ΔE00 5.56
Darkblue
#00008B
ΔE00 5.75
Cobalt Blue
#030AA7
ΔE00 5.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#331C85 #6E851C
analogous
#1C3A85 #331C85 #681C85
triadic
#331C85 #85331C #1C8533
tetradic
#331C85 #851C3A #6E851C #1C8568
square
#331C85 #851C3A #6E851C #1C8568
split-complementary
#331C85 #85681C #3A851C
monochromatic
#0C0720 #201152 #331C85 #4627B8 #6444D8
Accessibility & contrast
On white
12.76
#331C85 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#331C85 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #331C85
12.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##331C85 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##331C85 | 1.00 | 12.76 | 1.65 | 12.76 |
| #FFFFFF | 12.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#002F83
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #331c85; /* rgb */ color: rgb(51, 28, 133); /* oklch */ color: oklch(33.6% 0.162 283.5);
Tailwind
colors: {
custom: {
50: '#765caa',
500: '#331c85',
950: '#000000',
},
}SCSS
$custom: #331c85; $custom-light: #765caa; $custom-dark: #000000;
JSON
{
"hex": "#331c85",
"rgb": {
"r": 51,
"g": 28,
"b": 133
},
"hsl": {
"h": 253.143,
"s": 65.217,
"l": 31.569
},
"oklch": {
"l": 0.33625,
"c": 0.16172,
"h": 283.5
},
"luminance": 0.03228
}Semantic roles & 50–950 ramp
primary
#331C85
secondary
#9FB845
accent
#E840C3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F