#391F8B#391F8B
#391F8B is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.165 H 285.2°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).
Color values
| HEX | #391F8B |
|---|---|
| RGB | rgb(57, 31, 139) |
| HSL | hsl(254, 64%, 33%) |
| HSV | hsv(254, 78%, 55%) |
| CMYK | cmyk(59%, 77.7%, 0%, 45.5%) |
| CIE-LAB | lab(22.70, 41.12, -55.38) |
| CIE-LCH | lch(22.70, 68.98, 306.60°) |
| OKLab | oklab(35.2% 0.0433 -0.1595) |
| OKLCH | oklch(35.2% 0.165 285.2) |
| XYZ | xyz(6.8361, 3.7135, 24.7776) |
| Luminance | 0.0371 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.46
Indigo (survey)
#380282
ΔE00 4.56
Indigo Blue
#3A18B1
ΔE00 5.41
Indigo
#4B0082
ΔE00 5.54
Midnight Blue
#191970
ΔE00 5.79
Cobalt Blue
#030AA7
ΔE00 6.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#391F8B #718B1F
analogous
#1F3B8B #391F8B #6F1F8B
triadic
#391F8B #8B391F #1F8B39
tetradic
#391F8B #8B1F3B #718B1F #1F8B6F
square
#391F8B #8B1F3B #718B1F #1F8B6F
split-complementary
#391F8B #8B6F1F #3B8B1F
monochromatic
#100927 #241459 #391F8B #4E2ABD #6E4DD7
Accessibility & contrast
On white
12.05
#391F8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#391F8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #391F8B
12.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##391F8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##391F8B | 1.00 | 12.05 | 1.74 | 12.05 |
| #FFFFFF | 12.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#0D3E54
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #391f8b; /* rgb */ color: rgb(57, 31, 139); /* oklch */ color: oklch(35.2% 0.165 285.2);
Tailwind
colors: {
custom: {
50: '#7a5eae',
500: '#391f8b',
950: '#000000',
},
}SCSS
$custom: #391f8b; $custom-light: #7a5eae; $custom-dark: #000000;
JSON
{
"hex": "#391f8b",
"rgb": {
"r": 57,
"g": 31,
"b": 139
},
"hsl": {
"h": 254.444,
"s": 63.529,
"l": 33.333
},
"oklch": {
"l": 0.35197,
"c": 0.16528,
"h": 285.2
},
"luminance": 0.03714
}Semantic roles & 50–950 ramp
primary
#391F8B
secondary
#A0BA4C
accent
#E741BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F