#3F1A7E#3F1A7E
#3F1A7E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.155 H 293.1°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).
Color values
| HEX | #3F1A7E |
|---|---|
| RGB | rgb(63, 26, 126) |
| HSL | hsl(262, 66%, 30%) |
| HSV | hsv(262, 79%, 49%) |
| CMYK | cmyk(50%, 79.4%, 0%, 50.6%) |
| CIE-LAB | lab(21.21, 40.70, -49.62) |
| CIE-LCH | lch(21.21, 64.17, 309.36°) |
| OKLab | oklab(33.92% 0.0606 -0.1424) |
| OKLCH | oklch(33.92% 0.155 293.1) |
| XYZ | xyz(6.1841, 3.3017, 20.0461) |
| Luminance | 0.0330 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.64
Indigo
#4B0082
ΔE00 3.84
Royal Purple (survey)
#4B006E
ΔE00 5.35
Midnight Blue
#191970
ΔE00 5.87
Royal
#0C1793
ΔE00 6.33
Darkblue
#00008B
ΔE00 7.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F1A7E #597E1A
analogous
#1A277E #3F1A7E #711A7E
triadic
#3F1A7E #7E3F1A #1A7E3F
tetradic
#3F1A7E #7E1A27 #597E1A #1A7E71
square
#3F1A7E #7E1A27 #597E1A #1A7E71
split-complementary
#3F1A7E #7E711A #277E1A
monochromatic
#0D0519 #26104B #3F1A7E #5824B1 #753CD7
Accessibility & contrast
On white
12.65
#3F1A7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#3F1A7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F1A7E
12.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F1A7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F1A7E | 1.00 | 12.65 | 1.66 | 12.65 |
| #FFFFFF | 12.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#2B364B
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #3f1a7e; /* rgb */ color: rgb(63, 26, 126); /* oklch */ color: oklch(33.9% 0.155 293.1);
Tailwind
colors: {
custom: {
50: '#7b5ba4',
500: '#3f1a7e',
950: '#000000',
},
}SCSS
$custom: #3f1a7e; $custom-light: #7b5ba4; $custom-dark: #000000;
JSON
{
"hex": "#3f1a7e",
"rgb": {
"r": 63,
"g": 26,
"b": 126
},
"hsl": {
"h": 262.2,
"s": 65.789,
"l": 29.804
},
"oklch": {
"l": 0.33922,
"c": 0.15474,
"h": 293.1
},
"luminance": 0.03302
}Semantic roles & 50–950 ramp
primary
#3F1A7E
secondary
#88B242
accent
#E93FAA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F