#34157F#34157F
#34157F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.161 H 286.6°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).
Color values
| HEX | #34157F |
|---|---|
| RGB | rgb(52, 21, 127) |
| HSL | hsl(258, 72%, 29%) |
| HSV | hsv(258, 83%, 50%) |
| CMYK | cmyk(59.1%, 83.5%, 0%, 50.2%) |
| CIE-LAB | lab(19.22, 41.76, -53.58) |
| CIE-LCH | lch(19.22, 67.93, 307.93°) |
| OKLab | oklab(32.27% 0.046 -0.1543) |
| OKLCH | oklch(32.27% 0.161 286.6) |
| XYZ | xyz(5.5140, 2.7984, 20.3242) |
| Luminance | 0.0280 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.63
Indigo
#4B0082
ΔE00 4.47
Midnight Blue
#191970
ΔE00 4.58
Royal
#0C1793
ΔE00 4.71
Darkblue
#00008B
ΔE00 5.26
Navy
#000080
ΔE00 5.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#34157F #607F15
analogous
#152B7F #34157F #69157F
triadic
#34157F #7F3415 #157F34
tetradic
#34157F #7F152B #607F15 #157F69
square
#34157F #7F152B #607F15 #157F69
split-complementary
#34157F #7F6915 #2B7F15
monochromatic
#0B041A #1E0C4A #34157F #4A1EB4 #6431DD
Accessibility & contrast
On white
13.46
#34157F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#34157F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #34157F
13.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##34157F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##34157F | 1.00 | 13.46 | 1.56 | 13.46 |
| #FFFFFF | 13.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#0F354B
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #34157f; /* rgb */ color: rgb(52, 21, 127); /* oklch */ color: oklch(32.3% 0.161 286.6);
Tailwind
colors: {
custom: {
50: '#7658a5',
500: '#34157f',
950: '#000000',
},
}SCSS
$custom: #34157f; $custom-light: #7658a5; $custom-dark: #000000;
JSON
{
"hex": "#34157f",
"rgb": {
"r": 52,
"g": 21,
"b": 127
},
"hsl": {
"h": 257.547,
"s": 71.622,
"l": 29.02
},
"oklch": {
"l": 0.32265,
"c": 0.16101,
"h": 286.6
},
"luminance": 0.02799
}Semantic roles & 50–950 ramp
primary
#34157F
secondary
#91B43C
accent
#EE39B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F