#3F1A7B#3F1A7B
#3F1A7B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.151 H 294.0°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).
Color values
| HEX | #3F1A7B |
|---|---|
| RGB | rgb(63, 26, 123) |
| HSL | hsl(263, 65%, 29%) |
| HSV | hsv(263, 79%, 48%) |
| CMYK | cmyk(48.8%, 78.9%, 0%, 51.8%) |
| CIE-LAB | lab(20.92, 39.86, -48.18) |
| CIE-LCH | lch(20.92, 62.53, 309.60°) |
| OKLab | oklab(33.63% 0.0615 -0.1382) |
| OKLCH | oklch(33.63% 0.151 294) |
| XYZ | xyz(5.9935, 3.2254, 19.0418) |
| Luminance | 0.0323 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.84
Indigo
#4B0082
ΔE00 3.94
Royal Purple (survey)
#4B006E
ΔE00 5.09
Midnight Blue
#191970
ΔE00 5.83
Royal
#0C1793
ΔE00 6.70
Darkblue
#00008B
ΔE00 7.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F1A7B #567B1A
analogous
#1A257B #3F1A7B #701A7B
triadic
#3F1A7B #7B3F1A #1A7B3F
tetradic
#3F1A7B #7B1A25 #567B1A #1A7B70
square
#3F1A7B #7B1A25 #567B1A #1A7B70
split-complementary
#3F1A7B #7B701A #257B1A
monochromatic
#0D0519 #250F48 #3F1A7B #5925AE #753AD5
Accessibility & contrast
On white
12.76
#3F1A7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#3F1A7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F1A7B
12.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F1A7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F1A7B | 1.00 | 12.76 | 1.65 | 12.76 |
| #FFFFFF | 12.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#2D344A
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #3f1a7b; /* rgb */ color: rgb(63, 26, 123); /* oklch */ color: oklch(33.6% 0.151 294.0);
Tailwind
colors: {
custom: {
50: '#7b5ba2',
500: '#3f1a7b',
950: '#000000',
},
}SCSS
$custom: #3f1a7b; $custom-light: #7b5ba2; $custom-dark: #000000;
JSON
{
"hex": "#3f1a7b",
"rgb": {
"r": 63,
"g": 26,
"b": 123
},
"hsl": {
"h": 262.887,
"s": 65.101,
"l": 29.216
},
"oklch": {
"l": 0.33631,
"c": 0.15124,
"h": 294
},
"luminance": 0.03226
}Semantic roles & 50–950 ramp
primary
#3F1A7B
secondary
#85AF42
accent
#E840A8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F