#391F9C#391F9C
#391F9C is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.186 H 281.9°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).
Color values
| HEX | #391F9C |
|---|---|
| RGB | rgb(57, 31, 156) |
| HSL | hsl(252, 67%, 37%) |
| HSV | hsv(252, 80%, 61%) |
| CMYK | cmyk(63.5%, 80.1%, 0%, 38.8%) |
| CIE-LAB | lab(24.48, 46.24, -62.95) |
| CIE-LCH | lch(24.48, 78.11, 306.30°) |
| OKLab | oklab(36.97% 0.0383 -0.1816) |
| OKLCH | oklch(36.97% 0.186 281.9) |
| XYZ | xyz(8.1762, 4.2495, 31.8354) |
| Luminance | 0.0425 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.97
Royal
#0C1793
ΔE00 4.34
Cobalt Blue
#030AA7
ΔE00 4.71
Ultramarine
#2000B1
ΔE00 4.74
Royal Blue (survey)
#0504AA
ΔE00 5.02
Indigo (survey)
#380282
ΔE00 5.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#391F9C #829C1F
analogous
#1F449C #391F9C #781F9C
triadic
#391F9C #9C391F #1F9C39
tetradic
#391F9C #9C1F44 #829C1F #1F9C78
square
#391F9C #9C1F44 #829C1F #1F9C78
split-complementary
#391F9C #9C781F #449C1F
monochromatic
#140B36 #261569 #391F9C #4C29CF #7458DE
Accessibility & contrast
On white
11.35
#391F9C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#391F9C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #391F9C
11.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##391F9C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##391F9C | 1.00 | 11.35 | 1.85 | 11.35 |
| #FFFFFF | 11.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E9F
Deuteranopia (green-blind)
#00369A
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #391f9c; /* rgb */ color: rgb(57, 31, 156); /* oklch */ color: oklch(37.0% 0.186 281.9);
Tailwind
colors: {
custom: {
50: '#7d5fba',
500: '#391f9c',
950: '#000000',
},
}SCSS
$custom: #391f9c; $custom-light: #7d5fba; $custom-dark: #000000;
JSON
{
"hex": "#391f9c",
"rgb": {
"r": 57,
"g": 31,
"b": 156
},
"hsl": {
"h": 252.48,
"s": 66.845,
"l": 36.667
},
"oklch": {
"l": 0.36972,
"c": 0.1856,
"h": 281.9
},
"luminance": 0.0425
}Semantic roles & 50–950 ramp
primary
#391F9C
secondary
#ABC155
accent
#EA3EC6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981