#391F9E#391F9E
#391F9E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.188 H 281.6°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).
Color values
| HEX | #391F9E |
|---|---|
| RGB | rgb(57, 31, 158) |
| HSL | hsl(252, 67%, 37%) |
| HSV | hsv(252, 80%, 62%) |
| CMYK | cmyk(63.9%, 80.4%, 0%, 38%) |
| CIE-LAB | lab(24.70, 46.83, -63.82) |
| CIE-LCH | lch(24.70, 79.16, 306.27°) |
| OKLab | oklab(37.19% 0.0377 -0.1841) |
| OKLCH | oklch(37.19% 0.188 281.6) |
| XYZ | xyz(8.3469, 4.3178, 32.7347) |
| Luminance | 0.0432 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.71
Royal
#0C1793
ΔE00 4.43
Ultramarine
#2000B1
ΔE00 4.60
Cobalt Blue
#030AA7
ΔE00 4.64
Royal Blue (survey)
#0504AA
ΔE00 4.94
Indigo (survey)
#380282
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#391F9E #849E1F
analogous
#1F459E #391F9E #781F9E
triadic
#391F9E #9E391F #1F9E39
tetradic
#391F9E #9E1F45 #849E1F #1F9E78
square
#391F9E #9E1F45 #849E1F #1F9E78
split-complementary
#391F9E #9E781F #459E1F
monochromatic
#140B38 #27156B #391F9E #4B29D1 #7459DE
Accessibility & contrast
On white
11.27
#391F9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.86
#391F9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #391F9E
11.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##391F9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##391F9E | 1.00 | 11.27 | 1.86 | 11.27 |
| #FFFFFF | 11.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003FA2
Deuteranopia (green-blind)
#00369C
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #391f9e; /* rgb */ color: rgb(57, 31, 158); /* oklch */ color: oklch(37.2% 0.188 281.6);
Tailwind
colors: {
custom: {
50: '#7d5fbc',
500: '#391f9e',
950: '#000000',
},
}SCSS
$custom: #391f9e; $custom-light: #7d5fbc; $custom-dark: #000000;
JSON
{
"hex": "#391f9e",
"rgb": {
"r": 57,
"g": 31,
"b": 158
},
"hsl": {
"h": 252.283,
"s": 67.196,
"l": 37.059
},
"oklch": {
"l": 0.37186,
"c": 0.18795,
"h": 281.6
},
"luminance": 0.04318
}Semantic roles & 50–950 ramp
primary
#391F9E
secondary
#ACC256
accent
#EA3EC7
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981