#34167C#34167C
#34167C is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.157 H 287.2°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).
Color values
| HEX | #34167C |
|---|---|
| RGB | rgb(52, 22, 124) |
| HSL | hsl(258, 70%, 29%) |
| HSV | hsv(258, 82%, 49%) |
| CMYK | cmyk(58.1%, 82.3%, 0%, 51.4%) |
| CIE-LAB | lab(19.05, 40.42, -51.95) |
| CIE-LCH | lch(19.05, 65.82, 307.89°) |
| OKLab | oklab(32.05% 0.0464 -0.1495) |
| OKLCH | oklch(32.05% 0.157 287.2) |
| XYZ | xyz(5.3401, 2.7588, 19.3160) |
| Luminance | 0.0276 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.94
Midnight Blue
#191970
ΔE00 4.33
Indigo
#4B0082
ΔE00 4.62
Royal
#0C1793
ΔE00 5.06
Navy
#000080
ΔE00 5.55
Darkblue
#00008B
ΔE00 5.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#34167C #5E7C16
analogous
#162B7C #34167C #67167C
triadic
#34167C #7C3416 #167C34
tetradic
#34167C #7C162B #5E7C16 #167C67
square
#34167C #7C162B #5E7C16 #167C67
split-complementary
#34167C #7C6716 #2B7C16
monochromatic
#0B051A #1E0D48 #34167C #4A1FB0 #6332DB
Accessibility & contrast
On white
13.53
#34167C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#34167C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #34167C
13.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##34167C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##34167C | 1.00 | 13.53 | 1.55 | 13.53 |
| #FFFFFF | 13.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#133449
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #34167c; /* rgb */ color: rgb(52, 22, 124); /* oklch */ color: oklch(32.1% 0.157 287.2);
Tailwind
colors: {
custom: {
50: '#7558a3',
500: '#34167c',
950: '#000000',
},
}SCSS
$custom: #34167c; $custom-light: #7558a3; $custom-dark: #000000;
JSON
{
"hex": "#34167c",
"rgb": {
"r": 52,
"g": 22,
"b": 124
},
"hsl": {
"h": 257.647,
"s": 69.863,
"l": 28.627
},
"oklch": {
"l": 0.32052,
"c": 0.15656,
"h": 287.2
},
"luminance": 0.02759
}Semantic roles & 50–950 ramp
primary
#34167C
secondary
#8FB13D
accent
#ED3BB8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F