#391F87#391F87
#391F87 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.160 H 286.1°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).
Color values
| HEX | #391F87 |
|---|---|
| RGB | rgb(57, 31, 135) |
| HSL | hsl(255, 63%, 33%) |
| HSV | hsv(255, 77%, 53%) |
| CMYK | cmyk(57.8%, 77%, 0%, 47.1%) |
| CIE-LAB | lab(22.30, 39.91, -53.54) |
| CIE-LCH | lch(22.30, 66.78, 306.70°) |
| OKLab | oklab(34.79% 0.0444 -0.1541) |
| OKLCH | oklch(34.79% 0.16 286.1) |
| XYZ | xyz(6.5492, 3.5987, 23.2665) |
| Luminance | 0.0360 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.46
Royal
#0C1793
ΔE00 4.74
Midnight Blue
#191970
ΔE00 5.42
Indigo
#4B0082
ΔE00 5.42
Indigo Blue
#3A18B1
ΔE00 6.03
Cobalt Blue
#030AA7
ΔE00 6.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#391F87 #6D871F
analogous
#1F3987 #391F87 #6D1F87
triadic
#391F87 #87391F #1F8739
tetradic
#391F87 #871F39 #6D871F #1F876D
square
#391F87 #871F39 #6D871F #1F876D
split-complementary
#391F87 #876D1F #39871F
monochromatic
#0F0823 #241455 #391F87 #4E2AB9 #6D4BD6
Accessibility & contrast
On white
12.21
#391F87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#391F87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #391F87
12.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##391F87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##391F87 | 1.00 | 12.21 | 1.72 | 12.21 |
| #FFFFFF | 12.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#143C51
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #391f87; /* rgb */ color: rgb(57, 31, 135); /* oklch */ color: oklch(34.8% 0.160 286.1);
Tailwind
colors: {
custom: {
50: '#795eab',
500: '#391f87',
950: '#000000',
},
}SCSS
$custom: #391f87; $custom-light: #795eab; $custom-dark: #000000;
JSON
{
"hex": "#391f87",
"rgb": {
"r": 57,
"g": 31,
"b": 135
},
"hsl": {
"h": 255,
"s": 62.651,
"l": 32.549
},
"oklch": {
"l": 0.34793,
"c": 0.16039,
"h": 286.1
},
"luminance": 0.03599
}Semantic roles & 50–950 ramp
primary
#391F87
secondary
#9DB84A
accent
#E642BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F