#3A157B#3A157B
#3A157B is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.156 H 291.5°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).
Color values
| HEX | #3A157B |
|---|---|
| RGB | rgb(58, 21, 123) |
| HSL | hsl(262, 71%, 28%) |
| HSV | hsv(262, 83%, 48%) |
| CMYK | cmyk(52.8%, 82.9%, 0%, 51.8%) |
| CIE-LAB | lab(19.50, 41.40, -50.55) |
| CIE-LCH | lch(19.50, 65.34, 309.32°) |
| OKLab | oklab(32.5% 0.0573 -0.1452) |
| OKLCH | oklch(32.5% 0.156 291.5) |
| XYZ | xyz(5.5872, 2.8657, 18.9938) |
| Luminance | 0.0287 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.78
Indigo
#4B0082
ΔE00 3.75
Royal Purple (survey)
#4B006E
ΔE00 5.14
Midnight Blue
#191970
ΔE00 5.25
Royal
#0C1793
ΔE00 5.97
Navy
#000080
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A157B #567B15
analogous
#15237B #3A157B #6D157B
triadic
#3A157B #7B3A15 #157B3A
tetradic
#3A157B #7B1523 #567B15 #157B6D
square
#3A157B #7B1523 #567B15 #157B6D
split-complementary
#3A157B #7B6D15 #237B15
monochromatic
#0C041A #210C47 #3A157B #531EAF #6E2FDB
Accessibility & contrast
On white
13.35
#3A157B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#3A157B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A157B
13.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A157B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A157B | 1.00 | 13.35 | 1.57 | 13.35 |
| #FFFFFF | 13.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#233348
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #3a157b; /* rgb */ color: rgb(58, 21, 123); /* oklch */ color: oklch(32.5% 0.156 291.5);
Tailwind
colors: {
custom: {
50: '#7858a2',
500: '#3a157b',
950: '#000000',
},
}SCSS
$custom: #3a157b; $custom-light: #7858a2; $custom-dark: #000000;
JSON
{
"hex": "#3a157b",
"rgb": {
"r": 58,
"g": 21,
"b": 123
},
"hsl": {
"h": 261.765,
"s": 70.833,
"l": 28.235
},
"oklch": {
"l": 0.32495,
"c": 0.15615,
"h": 291.5
},
"luminance": 0.02866
}Semantic roles & 50–950 ramp
primary
#3A157B
secondary
#86B03B
accent
#EE3AAD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F