#3A157C#3A157C
#3A157C is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.157 H 291.2°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).
Color values
| HEX | #3A157C |
|---|---|
| RGB | rgb(58, 21, 124) |
| HSL | hsl(262, 71%, 28%) |
| HSV | hsv(262, 83%, 49%) |
| CMYK | cmyk(53.2%, 83.1%, 0%, 51.4%) |
| CIE-LAB | lab(19.60, 41.68, -51.01) |
| CIE-LCH | lch(19.60, 65.88, 309.25°) |
| OKLab | oklab(32.6% 0.057 -0.1466) |
| OKLCH | oklch(32.6% 0.157 291.2) |
| XYZ | xyz(5.6501, 2.8909, 19.3252) |
| Luminance | 0.0289 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.70
Indigo
#4B0082
ΔE00 3.73
Royal Purple (survey)
#4B006E
ΔE00 5.23
Midnight Blue
#191970
ΔE00 5.27
Royal
#0C1793
ΔE00 5.84
Navy
#000080
ΔE00 6.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A157C #577C15
analogous
#15247C #3A157C #6D157C
triadic
#3A157C #7C3A15 #157C3A
tetradic
#3A157C #7C1524 #577C15 #157C6D
square
#3A157C #7C1524 #577C15 #157C6D
split-complementary
#3A157C #7C6D15 #247C15
monochromatic
#0C041A #220C48 #3A157C #521EB0 #6D30DC
Accessibility & contrast
On white
13.31
#3A157C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#3A157C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A157C
13.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A157C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A157C | 1.00 | 13.31 | 1.58 | 13.31 |
| #FFFFFF | 13.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#233349
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #3a157c; /* rgb */ color: rgb(58, 21, 124); /* oklch */ color: oklch(32.6% 0.157 291.2);
Tailwind
colors: {
custom: {
50: '#7858a3',
500: '#3a157c',
950: '#000000',
},
}SCSS
$custom: #3a157c; $custom-light: #7858a3; $custom-dark: #000000;
JSON
{
"hex": "#3a157c",
"rgb": {
"r": 58,
"g": 21,
"b": 124
},
"hsl": {
"h": 261.553,
"s": 71.034,
"l": 28.431
},
"oklch": {
"l": 0.32598,
"c": 0.1573,
"h": 291.2
},
"luminance": 0.02891
}Semantic roles & 50–950 ramp
primary
#3A157C
secondary
#87B13C
accent
#EE3AAD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F