#34197E#34197E
#34197E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.156 H 286.2°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).
Color values
| HEX | #34197E |
|---|---|
| RGB | rgb(52, 25, 126) |
| HSL | hsl(256, 67%, 30%) |
| HSV | hsv(256, 80%, 49%) |
| CMYK | cmyk(58.7%, 80.2%, 0%, 50.6%) |
| CIE-LAB | lab(19.77, 39.56, -52.04) |
| CIE-LCH | lch(19.77, 65.37, 307.24°) |
| OKLab | oklab(32.61% 0.0436 -0.1498) |
| OKLCH | oklch(32.61% 0.156 286.2) |
| XYZ | xyz(5.5286, 2.9314, 20.0091) |
| Luminance | 0.0293 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.43
Midnight Blue
#191970
ΔE00 4.25
Royal
#0C1793
ΔE00 4.81
Indigo
#4B0082
ΔE00 4.99
Darkblue
#00008B
ΔE00 5.81
Navy
#000080
ΔE00 5.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#34197E #637E19
analogous
#19307E #34197E #67197E
triadic
#34197E #7E3419 #197E34
tetradic
#34197E #7E1930 #637E19 #197E67
square
#34197E #7E1930 #637E19 #197E67
split-complementary
#34197E #7E6719 #307E19
monochromatic
#0B051A #1F0F4B #34197E #4923B1 #643AD8
Accessibility & contrast
On white
13.24
#34197E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#34197E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #34197E
13.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##34197E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##34197E | 1.00 | 13.24 | 1.59 | 13.24 |
| #FFFFFF | 13.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#10364B
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #34197e; /* rgb */ color: rgb(52, 25, 126); /* oklch */ color: oklch(32.6% 0.156 286.2);
Tailwind
colors: {
custom: {
50: '#755aa4',
500: '#34197e',
950: '#000000',
},
}SCSS
$custom: #34197e; $custom-light: #755aa4; $custom-dark: #000000;
JSON
{
"hex": "#34197e",
"rgb": {
"r": 52,
"g": 25,
"b": 126
},
"hsl": {
"h": 256.04,
"s": 66.887,
"l": 29.608
},
"oklch": {
"l": 0.32614,
"c": 0.15606,
"h": 286.2
},
"luminance": 0.02932
}Semantic roles & 50–950 ramp
primary
#34197E
secondary
#94B241
accent
#EA3EBC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F