#3F1F8F#3F1F8F
#3F1F8F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.170 H 287.7°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).
Color values
| HEX | #3F1F8F |
|---|---|
| RGB | rgb(63, 31, 143) |
| HSL | hsl(257, 64%, 34%) |
| HSV | hsv(257, 78%, 56%) |
| CMYK | cmyk(55.9%, 78.3%, 0%, 43.9%) |
| CIE-LAB | lab(23.74, 43.15, -56.14) |
| CIE-LCH | lch(23.74, 70.81, 307.54°) |
| OKLab | oklab(36.2% 0.0516 -0.1615) |
| OKLCH | oklch(36.2% 0.17 287.7) |
| XYZ | xyz(7.4963, 4.0195, 26.3621) |
| Luminance | 0.0402 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.71
Indigo Blue
#3A18B1
ΔE00 4.87
Royal
#0C1793
ΔE00 5.12
Indigo
#4B0082
ΔE00 5.17
Cobalt Blue
#030AA7
ΔE00 6.16
Ultramarine
#2000B1
ΔE00 6.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F1F8F #6F8F1F
analogous
#1F378F #3F1F8F #771F8F
triadic
#3F1F8F #8F3F1F #1F8F3F
tetradic
#3F1F8F #8F1F37 #6F8F1F #1F8F77
square
#3F1F8F #8F1F37 #6F8F1F #1F8F77
split-complementary
#3F1F8F #8F771F #378F1F
monochromatic
#13092A #29145D #3F1F8F #552AC1 #774FD9
Accessibility & contrast
On white
11.64
#3F1F8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#3F1F8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F1F8F
11.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F1F8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F1F8F | 1.00 | 11.64 | 1.80 | 11.64 |
| #FFFFFF | 11.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00358D
Tritanopia (blue-blind)
#1D3F56
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #3f1f8f; /* rgb */ color: rgb(63, 31, 143); /* oklch */ color: oklch(36.2% 0.170 287.7);
Tailwind
colors: {
custom: {
50: '#7e5fb1',
500: '#3f1f8f',
950: '#000000',
},
}SCSS
$custom: #3f1f8f; $custom-light: #7e5fb1; $custom-dark: #000000;
JSON
{
"hex": "#3f1f8f",
"rgb": {
"r": 63,
"g": 31,
"b": 143
},
"hsl": {
"h": 257.143,
"s": 64.368,
"l": 34.118
},
"oklch": {
"l": 0.36195,
"c": 0.16957,
"h": 287.7
},
"luminance": 0.0402
}Semantic roles & 50–950 ramp
primary
#3F1F8F
secondary
#9CBC4E
accent
#E740B8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980