#3F1B7F#3F1B7F
#3F1B7F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.155 H 292.6°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).
Color values
| HEX | #3F1B7F |
|---|---|
| RGB | rgb(63, 27, 127) |
| HSL | hsl(262, 65%, 30%) |
| HSV | hsv(262, 79%, 50%) |
| CMYK | cmyk(50.4%, 78.7%, 0%, 50.2%) |
| CIE-LAB | lab(21.48, 40.50, -49.81) |
| CIE-LCH | lch(21.48, 64.20, 309.11°) |
| OKLab | oklab(34.14% 0.0595 -0.143) |
| OKLCH | oklch(34.14% 0.155 292.6) |
| XYZ | xyz(6.2715, 3.3727, 20.3951) |
| Luminance | 0.0337 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.77
Indigo
#4B0082
ΔE00 4.00
Royal Purple (survey)
#4B006E
ΔE00 5.58
Midnight Blue
#191970
ΔE00 5.87
Royal
#0C1793
ΔE00 6.24
Darkblue
#00008B
ΔE00 7.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F1B7F #5B7F1B
analogous
#1B297F #3F1B7F #711B7F
triadic
#3F1B7F #7F3F1B #1B7F3F
tetradic
#3F1B7F #7F1B29 #5B7F1B #1B7F71
square
#3F1B7F #7F1B29 #5B7F1B #1B7F71
split-complementary
#3F1B7F #7F711B #297F1B
monochromatic
#0D061A #26104D #3F1B7F #5826B1 #753ED6
Accessibility & contrast
On white
12.54
#3F1B7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#3F1B7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F1B7F
12.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F1B7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F1B7F | 1.00 | 12.54 | 1.67 | 12.54 |
| #FFFFFF | 12.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#2A374C
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #3f1b7f; /* rgb */ color: rgb(63, 27, 127); /* oklch */ color: oklch(34.1% 0.155 292.6);
Tailwind
colors: {
custom: {
50: '#7b5ca5',
500: '#3f1b7f',
950: '#000000',
},
}SCSS
$custom: #3f1b7f; $custom-light: #7b5ca5; $custom-dark: #000000;
JSON
{
"hex": "#3f1b7f",
"rgb": {
"r": 63,
"g": 27,
"b": 127
},
"hsl": {
"h": 261.6,
"s": 64.935,
"l": 30.196
},
"oklch": {
"l": 0.34137,
"c": 0.15485,
"h": 292.6
},
"luminance": 0.03373
}Semantic roles & 50–950 ramp
primary
#3F1B7F
secondary
#8BB343
accent
#E840AB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F