#34198C#34198C
#34198C is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.173 H 283.1°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).
Color values
| HEX | #34198C |
|---|---|
| RGB | rgb(52, 25, 140) |
| HSL | hsl(254, 70%, 32%) |
| HSV | hsv(254, 82%, 55%) |
| CMYK | cmyk(62.9%, 82.1%, 0%, 45.1%) |
| CIE-LAB | lab(21.28, 43.75, -58.37) |
| CIE-LCH | lch(21.28, 72.95, 306.86°) |
| OKLab | oklab(34.11% 0.0391 -0.1683) |
| OKLCH | oklch(34.11% 0.173 283.1) |
| XYZ | xyz(6.4960, 3.3183, 25.1040) |
| Luminance | 0.0332 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.54
Indigo (survey)
#380282
ΔE00 3.61
Cobalt Blue
#030AA7
ΔE00 4.95
Indigo Blue
#3A18B1
ΔE00 5.20
Indigo
#4B0082
ΔE00 5.22
Darkblue
#00008B
ΔE00 5.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#34198C #718C19
analogous
#19388C #34198C #6E198C
triadic
#34198C #8C3419 #198C34
tetradic
#34198C #8C1938 #718C19 #198C6E
square
#34198C #8C1938 #718C19 #198C6E
split-complementary
#34198C #8C6E19 #388C19
monochromatic
#0D0624 #211058 #34198C #4722C0 #6742DD
Accessibility & contrast
On white
12.62
#34198C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#34198C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #34198C
12.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##34198C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##34198C | 1.00 | 12.62 | 1.66 | 12.62 |
| #FFFFFF | 12.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00378F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #34198c; /* rgb */ color: rgb(52, 25, 140); /* oklch */ color: oklch(34.1% 0.173 283.1);
Tailwind
colors: {
custom: {
50: '#785aaf',
500: '#34198c',
950: '#000000',
},
}SCSS
$custom: #34198c; $custom-light: #785aaf; $custom-dark: #000000;
JSON
{
"hex": "#34198c",
"rgb": {
"r": 52,
"g": 25,
"b": 140
},
"hsl": {
"h": 254.087,
"s": 69.697,
"l": 32.353
},
"oklch": {
"l": 0.34114,
"c": 0.17279,
"h": 283.1
},
"luminance": 0.03319
}Semantic roles & 50–950 ramp
primary
#34198C
secondary
#A1BE43
accent
#ED3BC3
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F