#3F157F#3F157F
#3F157F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.161 H 293.5°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).
Color values
| HEX | #3F157F |
|---|---|
| RGB | rgb(63, 21, 127) |
| HSL | hsl(264, 72%, 29%) |
| HSV | hsv(264, 83%, 50%) |
| CMYK | cmyk(50.4%, 83.5%, 0%, 50.2%) |
| CIE-LAB | lab(20.54, 43.21, -51.36) |
| CIE-LCH | lch(20.54, 67.12, 310.08°) |
| OKLab | oklab(33.48% 0.0642 -0.1474) |
| OKLCH | oklch(33.48% 0.161 293.5) |
| XYZ | xyz(6.1478, 3.1252, 20.3539) |
| Luminance | 0.0313 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.75
Indigo
#4B0082
ΔE00 3.07
Royal Purple (survey)
#4B006E
ΔE00 4.91
Midnight Blue
#191970
ΔE00 6.12
Royal
#0C1793
ΔE00 6.22
Darkblue
#00008B
ΔE00 6.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F157F #557F15
analogous
#15207F #3F157F #74157F
triadic
#3F157F #7F3F15 #157F3F
tetradic
#3F157F #7F1520 #557F15 #157F74
square
#3F157F #7F1520 #557F15 #157F74
split-complementary
#3F157F #7F7415 #207F15
monochromatic
#0D041A #250C4A #3F157F #591EB4 #7531DD
Accessibility & contrast
On white
12.92
#3F157F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#3F157F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F157F
12.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F157F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F157F | 1.00 | 12.92 | 1.63 | 12.92 |
| #FFFFFF | 12.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#2B344B
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #3f157f; /* rgb */ color: rgb(63, 21, 127); /* oklch */ color: oklch(33.5% 0.161 293.5);
Tailwind
colors: {
custom: {
50: '#7c59a5',
500: '#3f157f',
950: '#000000',
},
}SCSS
$custom: #3f157f; $custom-light: #7c59a5; $custom-dark: #000000;
JSON
{
"hex": "#3f157f",
"rgb": {
"r": 63,
"g": 21,
"b": 127
},
"hsl": {
"h": 263.774,
"s": 71.622,
"l": 29.02
},
"oklch": {
"l": 0.33482,
"c": 0.1608,
"h": 293.5
},
"luminance": 0.03125
}Semantic roles & 50–950 ramp
primary
#3F157F
secondary
#84B43C
accent
#EE39A7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F