#3F1A7C#3F1A7C
#3F1A7C is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.152 H 293.7°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).
Color values
| HEX | #3F1A7C |
|---|---|
| RGB | rgb(63, 26, 124) |
| HSL | hsl(263, 65%, 29%) |
| HSV | hsv(263, 79%, 49%) |
| CMYK | cmyk(49.2%, 79%, 0%, 51.4%) |
| CIE-LAB | lab(21.02, 40.14, -48.66) |
| CIE-LCH | lch(21.02, 63.08, 309.52°) |
| OKLab | oklab(33.73% 0.0612 -0.1396) |
| OKLCH | oklch(33.73% 0.152 293.7) |
| XYZ | xyz(6.0564, 3.2506, 19.3732) |
| Luminance | 0.0325 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.76
Indigo
#4B0082
ΔE00 3.90
Royal Purple (survey)
#4B006E
ΔE00 5.17
Midnight Blue
#191970
ΔE00 5.84
Royal
#0C1793
ΔE00 6.58
Darkblue
#00008B
ΔE00 7.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F1A7C #577C1A
analogous
#1A267C #3F1A7C #701A7C
triadic
#3F1A7C #7C3F1A #1A7C3F
tetradic
#3F1A7C #7C1A26 #577C1A #1A7C70
square
#3F1A7C #7C1A26 #577C1A #1A7C70
split-complementary
#3F1A7C #7C701A #267C1A
monochromatic
#0D0519 #250F49 #3F1A7C #5925AF #753BD6
Accessibility & contrast
On white
12.73
#3F1A7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#3F1A7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F1A7C
12.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F1A7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F1A7C | 1.00 | 12.73 | 1.65 | 12.73 |
| #FFFFFF | 12.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#2C354A
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #3f1a7c; /* rgb */ color: rgb(63, 26, 124); /* oklch */ color: oklch(33.7% 0.152 293.7);
Tailwind
colors: {
custom: {
50: '#7b5ba3',
500: '#3f1a7c',
950: '#000000',
},
}SCSS
$custom: #3f1a7c; $custom-light: #7b5ba3; $custom-dark: #000000;
JSON
{
"hex": "#3f1a7c",
"rgb": {
"r": 63,
"g": 26,
"b": 124
},
"hsl": {
"h": 262.653,
"s": 65.333,
"l": 29.412
},
"oklch": {
"l": 0.33728,
"c": 0.15241,
"h": 293.7
},
"luminance": 0.03251
}Semantic roles & 50–950 ramp
primary
#3F1A7C
secondary
#86B042
accent
#E840A9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F