#391B8A#391B8A
#391B8A is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.168 H 286.0°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).
Color values
| HEX | #391B8A |
|---|---|
| RGB | rgb(57, 27, 138) |
| HSL | hsl(256, 67%, 32%) |
| HSV | hsv(256, 80%, 54%) |
| CMYK | cmyk(58.7%, 80.4%, 0%, 45.9%) |
| CIE-LAB | lab(21.90, 42.82, -56.07) |
| CIE-LCH | lch(21.90, 70.55, 307.37°) |
| OKLab | oklab(34.61% 0.0464 -0.1615) |
| OKLCH | oklch(34.61% 0.168 286) |
| XYZ | xyz(6.6653, 3.4883, 24.3619) |
| Luminance | 0.0349 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.72
Royal
#0C1793
ΔE00 4.36
Indigo
#4B0082
ΔE00 4.86
Indigo Blue
#3A18B1
ΔE00 5.46
Cobalt Blue
#030AA7
ΔE00 5.74
Midnight Blue
#191970
ΔE00 5.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#391B8A #6C8A1B
analogous
#1B358A #391B8A #701B8A
triadic
#391B8A #8A391B #1B8A39
tetradic
#391B8A #8A1B35 #6C8A1B #1B8A70
square
#391B8A #8A1B35 #6C8A1B #1B8A70
split-complementary
#391B8A #8A701B #358A1B
monochromatic
#0F0724 #241157 #391B8A #4E25BD #6D45DB
Accessibility & contrast
On white
12.37
#391B8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#391B8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #391B8A
12.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##391B8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##391B8A | 1.00 | 12.37 | 1.70 | 12.37 |
| #FFFFFF | 12.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00378D
Deuteranopia (green-blind)
#003188
Tritanopia (blue-blind)
#103C52
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #391b8a; /* rgb */ color: rgb(57, 27, 138); /* oklch */ color: oklch(34.6% 0.168 286.0);
Tailwind
colors: {
custom: {
50: '#7a5cad',
500: '#391b8a',
950: '#000000',
},
}SCSS
$custom: #391b8a; $custom-light: #7a5cad; $custom-dark: #000000;
JSON
{
"hex": "#391b8a",
"rgb": {
"r": 57,
"g": 27,
"b": 138
},
"hsl": {
"h": 256.216,
"s": 67.273,
"l": 32.353
},
"oklch": {
"l": 0.34608,
"c": 0.16803,
"h": 286
},
"luminance": 0.03489
}Semantic roles & 50–950 ramp
primary
#391B8A
secondary
#9CBC45
accent
#EA3EBC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F