#3F1A72#3F1A72
#3F1A72 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.141 H 297.0°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).
Color values
| HEX | #3F1A72 |
|---|---|
| RGB | rgb(63, 26, 114) |
| HSL | hsl(265, 63%, 27%) |
| HSV | hsv(265, 77%, 45%) |
| CMYK | cmyk(44.7%, 77.2%, 0%, 55.3%) |
| CIE-LAB | lab(20.09, 37.34, -43.78) |
| CIE-LCH | lch(20.09, 57.54, 310.46°) |
| OKLab | oklab(32.78% 0.0639 -0.1253) |
| OKLCH | oklch(32.78% 0.141 297) |
| XYZ | xyz(5.4558, 3.0103, 16.2099) |
| Luminance | 0.0301 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 4.52
Indigo
#4B0082
ΔE00 4.61
Indigo (survey)
#380282
ΔE00 4.82
Midnight Blue
#191970
ΔE00 6.04
Dark Indigo
#1F0954
ΔE00 6.96
Dark Royal Blue
#02066F
ΔE00 7.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F1A72 #4D721A
analogous
#1A2172 #3F1A72 #6B1A72
triadic
#3F1A72 #723F1A #1A723F
tetradic
#3F1A72 #721A21 #4D721A #1A726B
square
#3F1A72 #721A21 #4D721A #1A726B
split-complementary
#3F1A72 #726B1A #21721A
monochromatic
#0E0619 #230F40 #3F1A72 #5B25A4 #7735D1
Accessibility & contrast
On white
13.11
#3F1A72 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#3F1A72 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F1A72
13.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F1A72 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F1A72 | 1.00 | 13.11 | 1.60 | 13.11 |
| #FFFFFF | 13.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003175
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#323144
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #3f1a72; /* rgb */ color: rgb(63, 26, 114); /* oklch */ color: oklch(32.8% 0.141 297.0);
Tailwind
colors: {
custom: {
50: '#7a5a9b',
500: '#3f1a72',
950: '#000000',
},
}SCSS
$custom: #3f1a72; $custom-light: #7a5a9b; $custom-dark: #000000;
JSON
{
"hex": "#3f1a72",
"rgb": {
"r": 63,
"g": 26,
"b": 114
},
"hsl": {
"h": 265.227,
"s": 62.857,
"l": 27.451
},
"oklch": {
"l": 0.32783,
"c": 0.14064,
"h": 297
},
"luminance": 0.0301
}Semantic roles & 50–950 ramp
primary
#3F1A72
secondary
#7CA741
accent
#E642A1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E