#3F1F8B#3F1F8B
#3F1F8B is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.165 H 288.7°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).
Color values
| HEX | #3F1F8B |
|---|---|
| RGB | rgb(63, 31, 139) |
| HSL | hsl(258, 64%, 33%) |
| HSV | hsv(258, 78%, 55%) |
| CMYK | cmyk(54.7%, 77.7%, 0%, 45.5%) |
| CIE-LAB | lab(23.34, 41.98, -54.30) |
| CIE-LCH | lch(23.34, 68.64, 307.71°) |
| OKLab | oklab(35.8% 0.0527 -0.1562) |
| OKLCH | oklch(35.8% 0.165 288.7) |
| XYZ | xyz(7.1987, 3.9005, 24.7946) |
| Luminance | 0.0390 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.53
Indigo
#4B0082
ΔE00 4.95
Royal
#0C1793
ΔE00 5.32
Indigo Blue
#3A18B1
ΔE00 5.48
Midnight Blue
#191970
ΔE00 6.48
Cobalt Blue
#030AA7
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F1F8B #6B8B1F
analogous
#1F358B #3F1F8B #751F8B
triadic
#3F1F8B #8B3F1F #1F8B3F
tetradic
#3F1F8B #8B1F35 #6B8B1F #1F8B75
square
#3F1F8B #8B1F35 #6B8B1F #1F8B75
split-complementary
#3F1F8B #8B751F #358B1F
monochromatic
#120927 #281459 #3F1F8B #562ABD #764DD7
Accessibility & contrast
On white
11.80
#3F1F8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#3F1F8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F1F8B
11.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F1F8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F1F8B | 1.00 | 11.80 | 1.78 | 11.80 |
| #FFFFFF | 11.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#213D54
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #3f1f8b; /* rgb */ color: rgb(63, 31, 139); /* oklch */ color: oklch(35.8% 0.165 288.7);
Tailwind
colors: {
custom: {
50: '#7d5fae',
500: '#3f1f8b',
950: '#000000',
},
}SCSS
$custom: #3f1f8b; $custom-light: #7d5fae; $custom-dark: #000000;
JSON
{
"hex": "#3f1f8b",
"rgb": {
"r": 63,
"g": 31,
"b": 139
},
"hsl": {
"h": 257.778,
"s": 63.529,
"l": 33.333
},
"oklch": {
"l": 0.35797,
"c": 0.16482,
"h": 288.7
},
"luminance": 0.03901
}Semantic roles & 50–950 ramp
primary
#3F1F8B
secondary
#99BA4C
accent
#E741B6
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0510
muted
#7C797F