#3A157F#3A157F
#3A157F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.161 H 290.4°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).
Color values
| HEX | #3A157F |
|---|---|
| RGB | rgb(58, 21, 127) |
| HSL | hsl(261, 72%, 29%) |
| HSV | hsv(261, 83%, 50%) |
| CMYK | cmyk(54.3%, 83.5%, 0%, 50.2%) |
| CIE-LAB | lab(19.91, 42.53, -52.41) |
| CIE-LCH | lch(19.91, 67.49, 309.06°) |
| OKLab | oklab(32.91% 0.0559 -0.1507) |
| OKLCH | oklch(32.91% 0.161 290.4) |
| XYZ | xyz(5.8427, 2.9679, 20.3396) |
| Luminance | 0.0297 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.53
Indigo
#4B0082
ΔE00 3.68
Midnight Blue
#191970
ΔE00 5.37
Royal
#0C1793
ΔE00 5.49
Royal Purple (survey)
#4B006E
ΔE00 5.51
Darkblue
#00008B
ΔE00 5.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A157F #5A7F15
analogous
#15257F #3A157F #6F157F
triadic
#3A157F #7F3A15 #157F3A
tetradic
#3A157F #7F1525 #5A7F15 #157F6F
square
#3A157F #7F1525 #5A7F15 #157F6F
split-complementary
#3A157F #7F6F15 #257F15
monochromatic
#0C041A #220C4A #3A157F #521EB4 #6D31DD
Accessibility & contrast
On white
13.18
#3A157F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#3A157F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A157F
13.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A157F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A157F | 1.00 | 13.18 | 1.59 | 13.18 |
| #FFFFFF | 13.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#20354B
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #3a157f; /* rgb */ color: rgb(58, 21, 127); /* oklch */ color: oklch(32.9% 0.161 290.4);
Tailwind
colors: {
custom: {
50: '#7958a5',
500: '#3a157f',
950: '#000000',
},
}SCSS
$custom: #3a157f; $custom-light: #7958a5; $custom-dark: #000000;
JSON
{
"hex": "#3a157f",
"rgb": {
"r": 58,
"g": 21,
"b": 127
},
"hsl": {
"h": 260.943,
"s": 71.622,
"l": 29.02
},
"oklch": {
"l": 0.32909,
"c": 0.16072,
"h": 290.4
},
"luminance": 0.02968
}Semantic roles & 50–950 ramp
primary
#3A157F
secondary
#8AB43C
accent
#EE39AF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F