#34177F#34177F
#34177F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.159 H 286.3°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).
Color values
| HEX | #34177F |
|---|---|
| RGB | rgb(52, 23, 127) |
| HSL | hsl(257, 69%, 29%) |
| HSV | hsv(257, 82%, 50%) |
| CMYK | cmyk(59.1%, 81.9%, 0%, 50.2%) |
| CIE-LAB | lab(19.54, 40.84, -53.06) |
| CIE-LCH | lch(19.54, 66.95, 307.58°) |
| OKLab | oklab(32.49% 0.0447 -0.1528) |
| OKLCH | oklch(32.49% 0.159 286.3) |
| XYZ | xyz(5.5522, 2.8748, 20.3369) |
| Luminance | 0.0288 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.00
Midnight Blue
#191970
ΔE00 4.44
Royal
#0C1793
ΔE00 4.68
Indigo
#4B0082
ΔE00 4.70
Darkblue
#00008B
ΔE00 5.48
Navy
#000080
ΔE00 5.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#34177F #627F17
analogous
#172E7F #34177F #68177F
triadic
#34177F #7F3417 #177F34
tetradic
#34177F #7F172E #627F17 #177F68
square
#34177F #7F172E #627F17 #177F68
split-complementary
#34177F #7F6817 #2E7F17
monochromatic
#0B051A #1F0E4B #34177F #4920B3 #6436DB
Accessibility & contrast
On white
13.33
#34177F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#34177F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #34177F
13.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##34177F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##34177F | 1.00 | 13.33 | 1.58 | 13.33 |
| #FFFFFF | 13.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#0E364B
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #34177f; /* rgb */ color: rgb(52, 23, 127); /* oklch */ color: oklch(32.5% 0.159 286.3);
Tailwind
colors: {
custom: {
50: '#7659a5',
500: '#34177f',
950: '#000000',
},
}SCSS
$custom: #34177f; $custom-light: #7659a5; $custom-dark: #000000;
JSON
{
"hex": "#34177f",
"rgb": {
"r": 52,
"g": 23,
"b": 127
},
"hsl": {
"h": 256.731,
"s": 69.333,
"l": 29.412
},
"oklch": {
"l": 0.32485,
"c": 0.15919,
"h": 286.3
},
"luminance": 0.02875
}Semantic roles & 50–950 ramp
primary
#34177F
secondary
#93B43E
accent
#EC3CBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F