#331E9A#331E9A
#331E9A is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.185 H 279.4°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).
Color values
| HEX | #331E9A |
|---|---|
| RGB | rgb(51, 30, 154) |
| HSL | hsl(250, 67%, 36%) |
| HSV | hsv(250, 81%, 60%) |
| CMYK | cmyk(66.9%, 80.5%, 0%, 39.6%) |
| CIE-LAB | lab(23.55, 45.48, -63.27) |
| CIE-LCH | lch(23.55, 77.92, 305.71°) |
| OKLab | oklab(36.13% 0.0304 -0.1827) |
| OKLCH | oklch(36.13% 0.185 279.4) |
| XYZ | xyz(7.6604, 3.9648, 30.9272) |
| Luminance | 0.0396 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.34
Royal
#0C1793
ΔE00 3.54
Cobalt Blue
#030AA7
ΔE00 4.20
Ultramarine
#2000B1
ΔE00 4.55
Royal Blue (survey)
#0504AA
ΔE00 4.59
Indigo (survey)
#380282
ΔE00 5.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#331E9A #859A1E
analogous
#1E479A #331E9A #711E9A
triadic
#331E9A #9A331E #1E9A33
tetradic
#331E9A #9A1E47 #859A1E #1E9A71
square
#331E9A #9A1E47 #859A1E #1E9A71
split-complementary
#331E9A #9A711E #479A1E
monochromatic
#110A34 #221467 #331E9A #4428CD #6C55DE
Accessibility & contrast
On white
11.71
#331E9A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#331E9A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #331E9A
11.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##331E9A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##331E9A | 1.00 | 11.71 | 1.79 | 11.71 |
| #FFFFFF | 11.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D9D
Deuteranopia (green-blind)
#003398
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #331e9a; /* rgb */ color: rgb(51, 30, 154); /* oklch */ color: oklch(36.1% 0.185 279.4);
Tailwind
colors: {
custom: {
50: '#7a5eb9',
500: '#331e9a',
950: '#000000',
},
}SCSS
$custom: #331e9a; $custom-light: #7a5eb9; $custom-dark: #000000;
JSON
{
"hex": "#331e9a",
"rgb": {
"r": 51,
"g": 30,
"b": 154
},
"hsl": {
"h": 250.161,
"s": 67.391,
"l": 36.078
},
"oklch": {
"l": 0.36131,
"c": 0.18521,
"h": 279.4
},
"luminance": 0.03965
}Semantic roles & 50–950 ramp
primary
#331E9A
secondary
#AEC153
accent
#EA3ECD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981