#34197F#34197F
#34197F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.157 H 286.0°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).
Color values
| HEX | #34197F |
|---|---|
| RGB | rgb(52, 25, 127) |
| HSL | hsl(256, 67%, 30%) |
| HSV | hsv(256, 80%, 50%) |
| CMYK | cmyk(59.1%, 80.3%, 0%, 50.2%) |
| CIE-LAB | lab(19.87, 39.86, -52.50) |
| CIE-LCH | lch(19.87, 65.92, 307.21°) |
| OKLab | oklab(32.72% 0.0433 -0.1512) |
| OKLCH | oklch(32.72% 0.157 286) |
| XYZ | xyz(5.5934, 2.9573, 20.3506) |
| Luminance | 0.0296 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.40
Midnight Blue
#191970
ΔE00 4.31
Royal
#0C1793
ΔE00 4.69
Indigo
#4B0082
ΔE00 4.97
Darkblue
#00008B
ΔE00 5.74
Navy
#000080
ΔE00 5.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#34197F #647F19
analogous
#19317F #34197F #67197F
triadic
#34197F #7F3419 #197F34
tetradic
#34197F #7F1931 #647F19 #197F67
square
#34197F #7F1931 #647F19 #197F67
split-complementary
#34197F #7F6719 #317F19
monochromatic
#0A051A #1F0F4C #34197F #4923B2 #643AD8
Accessibility & contrast
On white
13.19
#34197F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#34197F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #34197F
13.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##34197F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##34197F | 1.00 | 13.19 | 1.59 | 13.19 |
| #FFFFFF | 13.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#0E374C
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #34197f; /* rgb */ color: rgb(52, 25, 127); /* oklch */ color: oklch(32.7% 0.157 286.0);
Tailwind
colors: {
custom: {
50: '#755aa5',
500: '#34197f',
950: '#000000',
},
}SCSS
$custom: #34197f; $custom-light: #755aa5; $custom-dark: #000000;
JSON
{
"hex": "#34197f",
"rgb": {
"r": 52,
"g": 25,
"b": 127
},
"hsl": {
"h": 255.882,
"s": 67.105,
"l": 29.804
},
"oklch": {
"l": 0.32719,
"c": 0.15727,
"h": 286
},
"luminance": 0.02958
}Semantic roles & 50–950 ramp
primary
#34197F
secondary
#95B341
accent
#EA3EBC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F