#391A8B#391A8B
#391A8B is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.170 H 286.0°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).
Color values
| HEX | #391A8B |
|---|---|
| RGB | rgb(57, 26, 139) |
| HSL | hsl(256, 68%, 32%) |
| HSV | hsv(256, 81%, 55%) |
| CMYK | cmyk(59%, 81.3%, 0%, 45.5%) |
| CIE-LAB | lab(21.84, 43.58, -56.79) |
| CIE-LCH | lch(21.84, 71.59, 307.50°) |
| OKLab | oklab(34.6% 0.0468 -0.1636) |
| OKLCH | oklch(34.6% 0.17 286) |
| XYZ | xyz(6.7155, 3.4723, 24.7375) |
| Luminance | 0.0347 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.59
Royal
#0C1793
ΔE00 4.28
Indigo
#4B0082
ΔE00 4.76
Indigo Blue
#3A18B1
ΔE00 5.30
Cobalt Blue
#030AA7
ΔE00 5.55
Midnight Blue
#191970
ΔE00 5.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#391A8B #6C8B1A
analogous
#1A348B #391A8B #711A8B
triadic
#391A8B #8B391A #1A8B39
tetradic
#391A8B #8B1A34 #6C8B1A #1A8B71
square
#391A8B #8B1A34 #6C8B1A #1A8B71
split-complementary
#391A8B #8B711A #348B1A
monochromatic
#0F0724 #241057 #391A8B #4E24BF #6D43DC
Accessibility & contrast
On white
12.39
#391A8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#391A8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #391A8B
12.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##391A8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##391A8B | 1.00 | 12.39 | 1.69 | 12.39 |
| #FFFFFF | 12.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#0E3C53
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #391a8b; /* rgb */ color: rgb(57, 26, 139); /* oklch */ color: oklch(34.6% 0.170 286.0);
Tailwind
colors: {
custom: {
50: '#7a5bae',
500: '#391a8b',
950: '#000000',
},
}SCSS
$custom: #391a8b; $custom-light: #7a5bae; $custom-dark: #000000;
JSON
{
"hex": "#391a8b",
"rgb": {
"r": 57,
"g": 26,
"b": 139
},
"hsl": {
"h": 256.46,
"s": 68.485,
"l": 32.353
},
"oklch": {
"l": 0.346,
"c": 0.17014,
"h": 286
},
"luminance": 0.03473
}Semantic roles & 50–950 ramp
primary
#391A8B
secondary
#9CBD44
accent
#EB3CBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F