#391B88#391B88
#391B88 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.166 H 286.5°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).
Color values
| HEX | #391B88 |
|---|---|
| RGB | rgb(57, 27, 136) |
| HSL | hsl(257, 67%, 32%) |
| HSV | hsv(257, 80%, 53%) |
| CMYK | cmyk(58.1%, 80.1%, 0%, 46.7%) |
| CIE-LAB | lab(21.69, 42.23, -55.16) |
| CIE-LCH | lch(21.69, 69.47, 307.44°) |
| OKLab | oklab(34.4% 0.0471 -0.1588) |
| OKLCH | oklch(34.4% 0.166 286.5) |
| XYZ | xyz(6.5219, 3.4309, 23.6064) |
| Luminance | 0.0343 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.65
Royal
#0C1793
ΔE00 4.50
Indigo
#4B0082
ΔE00 4.78
Midnight Blue
#191970
ΔE00 5.56
Indigo Blue
#3A18B1
ΔE00 5.77
Cobalt Blue
#030AA7
ΔE00 5.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#391B88 #6A881B
analogous
#1B3388 #391B88 #701B88
triadic
#391B88 #88391B #1B8839
tetradic
#391B88 #881B33 #6A881B #1B8870
square
#391B88 #881B33 #6A881B #1B8870
split-complementary
#391B88 #88701B #33881B
monochromatic
#0E0722 #241155 #391B88 #4E25BB #6D44DA
Accessibility & contrast
On white
12.45
#391B88 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#391B88 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #391B88
12.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##391B88 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##391B88 | 1.00 | 12.45 | 1.69 | 12.45 |
| #FFFFFF | 12.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#003186
Tritanopia (blue-blind)
#133B51
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #391b88; /* rgb */ color: rgb(57, 27, 136); /* oklch */ color: oklch(34.4% 0.166 286.5);
Tailwind
colors: {
custom: {
50: '#7a5cac',
500: '#391b88',
950: '#000000',
},
}SCSS
$custom: #391b88; $custom-light: #7a5cac; $custom-dark: #000000;
JSON
{
"hex": "#391b88",
"rgb": {
"r": 57,
"g": 27,
"b": 136
},
"hsl": {
"h": 256.514,
"s": 66.871,
"l": 31.961
},
"oklch": {
"l": 0.344,
"c": 0.16566,
"h": 286.5
},
"luminance": 0.03431
}Semantic roles & 50–950 ramp
primary
#391B88
secondary
#9ABB44
accent
#EA3EBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F