#3E197F#3E197F
#3E197F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.157 H 292.3°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).
Color values
| HEX | #3E197F |
|---|---|
| RGB | rgb(62, 25, 127) |
| HSL | hsl(262, 67%, 30%) |
| HSV | hsv(262, 80%, 50%) |
| CMYK | cmyk(51.2%, 80.3%, 0%, 50.2%) |
| CIE-LAB | lab(21.02, 41.30, -50.57) |
| CIE-LCH | lch(21.02, 65.29, 309.24°) |
| OKLab | oklab(33.79% 0.0595 -0.1452) |
| OKLCH | oklch(33.79% 0.157 292.3) |
| XYZ | xyz(6.1639, 3.2515, 20.3774) |
| Luminance | 0.0325 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.36
Indigo
#4B0082
ΔE00 3.77
Royal Purple (survey)
#4B006E
ΔE00 5.44
Midnight Blue
#191970
ΔE00 5.77
Royal
#0C1793
ΔE00 6.05
Darkblue
#00008B
ΔE00 6.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E197F #5A7F19
analogous
#19277F #3E197F #71197F
triadic
#3E197F #7F3E19 #197F3E
tetradic
#3E197F #7F1927 #5A7F19 #197F71
square
#3E197F #7F1927 #5A7F19 #197F71
split-complementary
#3E197F #7F7119 #277F19
monochromatic
#0C051A #250F4C #3E197F #5723B2 #743AD8
Accessibility & contrast
On white
12.72
#3E197F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#3E197F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E197F
12.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E197F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E197F | 1.00 | 12.72 | 1.65 | 12.72 |
| #FFFFFF | 12.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#29364C
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #3e197f; /* rgb */ color: rgb(62, 25, 127); /* oklch */ color: oklch(33.8% 0.157 292.3);
Tailwind
colors: {
custom: {
50: '#7b5ba5',
500: '#3e197f',
950: '#000000',
},
}SCSS
$custom: #3e197f; $custom-light: #7b5ba5; $custom-dark: #000000;
JSON
{
"hex": "#3e197f",
"rgb": {
"r": 62,
"g": 25,
"b": 127
},
"hsl": {
"h": 261.765,
"s": 67.105,
"l": 29.804
},
"oklch": {
"l": 0.33791,
"c": 0.15691,
"h": 292.3
},
"luminance": 0.03252
}Semantic roles & 50–950 ramp
primary
#3E197F
secondary
#8AB341
accent
#EA3EAC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F