#331C9E#331C9E
#331C9E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.192 H 279.1°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).
Color values
| HEX | #331C9E |
|---|---|
| RGB | rgb(51, 28, 158) |
| HSL | hsl(251, 70%, 36%) |
| HSV | hsv(251, 82%, 62%) |
| CMYK | cmyk(67.7%, 82.3%, 0%, 38%) |
| CIE-LAB | lab(23.68, 47.64, -65.52) |
| CIE-LCH | lch(23.68, 81.00, 306.02°) |
| OKLab | oklab(36.35% 0.0302 -0.1892) |
| OKLCH | oklch(36.35% 0.192 279.1) |
| XYZ | xyz(7.9501, 4.0023, 32.6947) |
| Luminance | 0.0400 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.74
Royal
#0C1793
ΔE00 3.66
Cobalt Blue
#030AA7
ΔE00 3.80
Ultramarine
#2000B1
ΔE00 3.95
Royal Blue (survey)
#0504AA
ΔE00 4.13
Indigo (survey)
#380282
ΔE00 5.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#331C9E #879E1C
analogous
#1C469E #331C9E #741C9E
triadic
#331C9E #9E331C #1C9E33
tetradic
#331C9E #9E1C46 #879E1C #1C9E74
square
#331C9E #9E1C46 #879E1C #1C9E74
split-complementary
#331C9E #9E741C #469E1C
monochromatic
#110A36 #22136A #331C9E #4425D2 #6D54E1
Accessibility & contrast
On white
11.66
#331C9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#331C9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #331C9E
11.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##331C9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##331C9E | 1.00 | 11.66 | 1.80 | 11.66 |
| #FFFFFF | 11.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003DA2
Deuteranopia (green-blind)
#00339C
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #331c9e; /* rgb */ color: rgb(51, 28, 158); /* oklch */ color: oklch(36.3% 0.192 279.1);
Tailwind
colors: {
custom: {
50: '#7b5dbc',
500: '#331c9e',
950: '#000000',
},
}SCSS
$custom: #331c9e; $custom-light: #7b5dbc; $custom-dark: #000000;
JSON
{
"hex": "#331c9e",
"rgb": {
"r": 51,
"g": 28,
"b": 158
},
"hsl": {
"h": 250.615,
"s": 69.892,
"l": 36.471
},
"oklch": {
"l": 0.36349,
"c": 0.19159,
"h": 279.1
},
"luminance": 0.04003
}Semantic roles & 50–950 ramp
primary
#331C9E
secondary
#B0C452
accent
#ED3BCD
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981