#3F1F8A#3F1F8A
#3F1F8A is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.164 H 288.9°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).
Color values
| HEX | #3F1F8A |
|---|---|
| RGB | rgb(63, 31, 138) |
| HSL | hsl(258, 63%, 33%) |
| HSV | hsv(258, 78%, 54%) |
| CMYK | cmyk(54.3%, 77.5%, 0%, 45.9%) |
| CIE-LAB | lab(23.24, 41.69, -53.84) |
| CIE-LCH | lch(23.24, 68.09, 307.75°) |
| OKLab | oklab(35.7% 0.053 -0.1548) |
| OKLCH | oklch(35.7% 0.164 288.9) |
| XYZ | xyz(7.1260, 3.8714, 24.4116) |
| Luminance | 0.0387 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.50
Indigo
#4B0082
ΔE00 4.91
Royal
#0C1793
ΔE00 5.38
Indigo Blue
#3A18B1
ΔE00 5.64
Midnight Blue
#191970
ΔE00 6.40
Cobalt Blue
#030AA7
ΔE00 6.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F1F8A #6A8A1F
analogous
#1F348A #3F1F8A #741F8A
triadic
#3F1F8A #8A3F1F #1F8A3F
tetradic
#3F1F8A #8A1F34 #6A8A1F #1F8A74
square
#3F1F8A #8A1F34 #6A8A1F #1F8A74
split-complementary
#3F1F8A #8A741F #348A1F
monochromatic
#110926 #281458 #3F1F8A #562ABC #764CD7
Accessibility & contrast
On white
11.83
#3F1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.77
#3F1F8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F1F8A
11.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F1F8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F1F8A | 1.00 | 11.83 | 1.77 | 11.83 |
| #FFFFFF | 11.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003588
Tritanopia (blue-blind)
#223D53
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #3f1f8a; /* rgb */ color: rgb(63, 31, 138); /* oklch */ color: oklch(35.7% 0.164 288.9);
Tailwind
colors: {
custom: {
50: '#7d5fad',
500: '#3f1f8a',
950: '#000000',
},
}SCSS
$custom: #3f1f8a; $custom-light: #7d5fad; $custom-dark: #000000;
JSON
{
"hex": "#3f1f8a",
"rgb": {
"r": 63,
"g": 31,
"b": 138
},
"hsl": {
"h": 257.944,
"s": 63.314,
"l": 33.137
},
"oklch": {
"l": 0.35699,
"c": 0.16363,
"h": 288.9
},
"luminance": 0.03872
}Semantic roles & 50–950 ramp
primary
#3F1F8A
secondary
#99BA4B
accent
#E641B5
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0510
muted
#7C797F