#34157A#34157A
#34157A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.155 H 287.9°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).
Color values
| HEX | #34157A |
|---|---|
| RGB | rgb(52, 21, 122) |
| HSL | hsl(258, 71%, 28%) |
| HSV | hsv(258, 83%, 48%) |
| CMYK | cmyk(57.4%, 82.8%, 0%, 52.2%) |
| CIE-LAB | lab(18.68, 40.30, -51.29) |
| CIE-LCH | lch(18.68, 65.22, 308.16°) |
| OKLab | oklab(31.73% 0.0477 -0.1476) |
| OKLCH | oklch(31.73% 0.155 287.9) |
| XYZ | xyz(5.1962, 2.6713, 18.6504) |
| Luminance | 0.0267 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.90
Midnight Blue
#191970
ΔE00 4.32
Indigo
#4B0082
ΔE00 4.56
Royal
#0C1793
ΔE00 5.33
Deep Blue
#040273
ΔE00 5.53
Navy
#000080
ΔE00 5.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#34157A #5B7A15
analogous
#15287A #34157A #66157A
triadic
#34157A #7A3415 #157A34
tetradic
#34157A #7A1528 #5B7A15 #157A66
square
#34157A #7A1528 #5B7A15 #157A66
split-complementary
#34157A #7A6615 #287A15
monochromatic
#0B041A #1E0C46 #34157A #4A1EAE #632EDB
Accessibility & contrast
On white
13.69
#34157A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#34157A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #34157A
13.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##34157A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##34157A | 1.00 | 13.69 | 1.53 | 13.69 |
| #FFFFFF | 13.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00307D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#153348
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #34157a; /* rgb */ color: rgb(52, 21, 122); /* oklch */ color: oklch(31.7% 0.155 287.9);
Tailwind
colors: {
custom: {
50: '#7557a1',
500: '#34157a',
950: '#000000',
},
}SCSS
$custom: #34157a; $custom-light: #7557a1; $custom-dark: #000000;
JSON
{
"hex": "#34157a",
"rgb": {
"r": 52,
"g": 21,
"b": 122
},
"hsl": {
"h": 258.416,
"s": 70.629,
"l": 28.039
},
"oklch": {
"l": 0.31728,
"c": 0.15513,
"h": 287.9
},
"luminance": 0.02672
}Semantic roles & 50–950 ramp
primary
#34157A
secondary
#8CAF3B
accent
#ED3AB6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F