#34197C#34197C
#34197C is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.154 H 286.7°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).
Color values
| HEX | #34197C |
|---|---|
| RGB | rgb(52, 25, 124) |
| HSL | hsl(256, 66%, 29%) |
| HSV | hsv(256, 80%, 49%) |
| CMYK | cmyk(58.1%, 79.8%, 0%, 51.4%) |
| CIE-LAB | lab(19.56, 38.96, -51.11) |
| CIE-LCH | lch(19.56, 64.27, 307.32°) |
| OKLab | oklab(32.41% 0.0442 -0.1471) |
| OKLCH | oklch(32.41% 0.154 286.7) |
| XYZ | xyz(5.4008, 2.8803, 19.3362) |
| Luminance | 0.0288 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.53
Midnight Blue
#191970
ΔE00 4.13
Indigo
#4B0082
ΔE00 5.03
Royal
#0C1793
ΔE00 5.06
Dark Royal Blue
#02066F
ΔE00 5.93
Navy
#000080
ΔE00 5.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#34197C #617C19
analogous
#192F7C #34197C #66197C
triadic
#34197C #7C3419 #197C34
tetradic
#34197C #7C192F #617C19 #197C66
square
#34197C #7C192F #617C19 #197C66
split-complementary
#34197C #7C6619 #2F7C19
monochromatic
#0B0519 #1F0F49 #34197C #4923AF #6438D7
Accessibility & contrast
On white
13.32
#34197C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#34197C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #34197C
13.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##34197C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##34197C | 1.00 | 13.32 | 1.58 | 13.32 |
| #FFFFFF | 13.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#13354A
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #34197c; /* rgb */ color: rgb(52, 25, 124); /* oklch */ color: oklch(32.4% 0.154 286.7);
Tailwind
colors: {
custom: {
50: '#7559a3',
500: '#34197c',
950: '#000000',
},
}SCSS
$custom: #34197c; $custom-light: #7559a3; $custom-dark: #000000;
JSON
{
"hex": "#34197c",
"rgb": {
"r": 52,
"g": 25,
"b": 124
},
"hsl": {
"h": 256.364,
"s": 66.443,
"l": 29.216
},
"oklch": {
"l": 0.32405,
"c": 0.15364,
"h": 286.7
},
"luminance": 0.02881
}Semantic roles & 50–950 ramp
primary
#34197C
secondary
#92B040
accent
#E93EBB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F