#3F1B7E#3F1B7E
#3F1B7E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.154 H 292.9°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).
Color values
| HEX | #3F1B7E |
|---|---|
| RGB | rgb(63, 27, 126) |
| HSL | hsl(262, 65%, 30%) |
| HSV | hsv(262, 79%, 49%) |
| CMYK | cmyk(50%, 78.6%, 0%, 50.6%) |
| CIE-LAB | lab(21.38, 40.22, -49.34) |
| CIE-LCH | lch(21.38, 63.65, 309.18°) |
| OKLab | oklab(34.04% 0.0598 -0.1416) |
| OKLCH | oklch(34.04% 0.154 292.9) |
| XYZ | xyz(6.2067, 3.3468, 20.0536) |
| Luminance | 0.0335 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.82
Indigo
#4B0082
ΔE00 4.02
Royal Purple (survey)
#4B006E
ΔE00 5.49
Midnight Blue
#191970
ΔE00 5.84
Royal
#0C1793
ΔE00 6.35
Darkblue
#00008B
ΔE00 7.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F1B7E #5A7E1B
analogous
#1B297E #3F1B7E #701B7E
triadic
#3F1B7E #7E3F1B #1B7E3F
tetradic
#3F1B7E #7E1B29 #5A7E1B #1B7E70
square
#3F1B7E #7E1B29 #5A7E1B #1B7E70
split-complementary
#3F1B7E #7E701B #297E1B
monochromatic
#0D0519 #26104C #3F1B7E #5826B0 #753ED6
Accessibility & contrast
On white
12.58
#3F1B7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#3F1B7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F1B7E
12.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F1B7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F1B7E | 1.00 | 12.58 | 1.67 | 12.58 |
| #FFFFFF | 12.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#2B364B
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #3f1b7e; /* rgb */ color: rgb(63, 27, 126); /* oklch */ color: oklch(34.0% 0.154 292.9);
Tailwind
colors: {
custom: {
50: '#7b5ca4',
500: '#3f1b7e',
950: '#000000',
},
}SCSS
$custom: #3f1b7e; $custom-light: #7b5ca4; $custom-dark: #000000;
JSON
{
"hex": "#3f1b7e",
"rgb": {
"r": 63,
"g": 27,
"b": 126
},
"hsl": {
"h": 261.818,
"s": 64.706,
"l": 30
},
"oklch": {
"l": 0.3404,
"c": 0.15367,
"h": 292.9
},
"luminance": 0.03347
}Semantic roles & 50–950 ramp
primary
#3F1B7E
secondary
#8AB243
accent
#E840AB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F