#3F1C7A#3F1C7A
#3F1C7A is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.148 H 293.9°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).
Color values
| HEX | #3F1C7A |
|---|---|
| RGB | rgb(63, 28, 122) |
| HSL | hsl(262, 63%, 29%) |
| HSV | hsv(262, 77%, 48%) |
| CMYK | cmyk(48.4%, 77%, 0%, 52.2%) |
| CIE-LAB | lab(21.18, 38.58, -47.13) |
| CIE-LCH | lch(21.18, 60.91, 309.31°) |
| OKLab | oklab(33.78% 0.06 -0.1351) |
| OKLCH | oklch(33.78% 0.148 293.9) |
| XYZ | xyz(5.9770, 3.2922, 18.7291) |
| Luminance | 0.0329 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.29
Indigo
#4B0082
ΔE00 4.35
Royal Purple (survey)
#4B006E
ΔE00 5.31
Midnight Blue
#191970
ΔE00 5.78
Royal
#0C1793
ΔE00 6.88
Dark Royal Blue
#02066F
ΔE00 7.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F1C7A #577A1C
analogous
#1C287A #3F1C7A #6E1C7A
triadic
#3F1C7A #7A3F1C #1C7A3F
tetradic
#3F1C7A #7A1C28 #577A1C #1C7A6E
square
#3F1C7A #7A1C28 #577A1C #1C7A6E
split-complementary
#3F1C7A #7A6E1C #287A1C
monochromatic
#0D0619 #251148 #3F1C7A #5927AC #753ED3
Accessibility & contrast
On white
12.66
#3F1C7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#3F1C7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F1C7A
12.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F1C7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F1C7A | 1.00 | 12.66 | 1.66 | 12.66 |
| #FFFFFF | 12.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#003178
Tritanopia (blue-blind)
#2D3549
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #3f1c7a; /* rgb */ color: rgb(63, 28, 122); /* oklch */ color: oklch(33.8% 0.148 293.9);
Tailwind
colors: {
custom: {
50: '#7b5ca1',
500: '#3f1c7a',
950: '#000000',
},
}SCSS
$custom: #3f1c7a; $custom-light: #7b5ca1; $custom-dark: #000000;
JSON
{
"hex": "#3f1c7a",
"rgb": {
"r": 63,
"g": 28,
"b": 122
},
"hsl": {
"h": 262.34,
"s": 62.667,
"l": 29.412
},
"oklch": {
"l": 0.3378,
"c": 0.14782,
"h": 293.9
},
"luminance": 0.03292
}Semantic roles & 50–950 ramp
primary
#3F1C7A
secondary
#86AE44
accent
#E642A9
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F