#391B8B#391B8B
#391B8B is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.169 H 285.8°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).
Color values
| HEX | #391B8B |
|---|---|
| RGB | rgb(57, 27, 139) |
| HSL | hsl(256, 67%, 33%) |
| HSV | hsv(256, 81%, 55%) |
| CMYK | cmyk(59%, 80.6%, 0%, 45.5%) |
| CIE-LAB | lab(22.01, 43.11, -56.52) |
| CIE-LCH | lch(22.01, 71.09, 307.34°) |
| OKLab | oklab(34.71% 0.0461 -0.1628) |
| OKLCH | oklch(34.71% 0.169 285.8) |
| XYZ | xyz(6.7381, 3.5174, 24.7450) |
| Luminance | 0.0352 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.77
Royal
#0C1793
ΔE00 4.30
Indigo
#4B0082
ΔE00 4.90
Indigo Blue
#3A18B1
ΔE00 5.31
Cobalt Blue
#030AA7
ΔE00 5.63
Midnight Blue
#191970
ΔE00 5.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#391B8B #6D8B1B
analogous
#1B358B #391B8B #711B8B
triadic
#391B8B #8B391B #1B8B39
tetradic
#391B8B #8B1B35 #6D8B1B #1B8B71
square
#391B8B #8B1B35 #6D8B1B #1B8B71
split-complementary
#391B8B #8B711B #358B1B
monochromatic
#0F0725 #241158 #391B8B #4E25BE #6D45DB
Accessibility & contrast
On white
12.33
#391B8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#391B8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #391B8B
12.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##391B8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##391B8B | 1.00 | 12.33 | 1.70 | 12.33 |
| #FFFFFF | 12.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#0E3C53
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #391b8b; /* rgb */ color: rgb(57, 27, 139); /* oklch */ color: oklch(34.7% 0.169 285.8);
Tailwind
colors: {
custom: {
50: '#7a5cae',
500: '#391b8b',
950: '#000000',
},
}SCSS
$custom: #391b8b; $custom-light: #7a5cae; $custom-dark: #000000;
JSON
{
"hex": "#391b8b",
"rgb": {
"r": 57,
"g": 27,
"b": 139
},
"hsl": {
"h": 256.071,
"s": 67.47,
"l": 32.549
},
"oklch": {
"l": 0.34713,
"c": 0.16921,
"h": 285.8
},
"luminance": 0.03518
}Semantic roles & 50–950 ramp
primary
#391B8B
secondary
#9DBC45
accent
#EA3DBC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F