#34167B#34167B
#34167B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.155 H 287.5°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).
Color values
| HEX | #34167B |
|---|---|
| RGB | rgb(52, 22, 123) |
| HSL | hsl(258, 70%, 28%) |
| HSV | hsv(258, 82%, 48%) |
| CMYK | cmyk(57.7%, 82.1%, 0%, 51.8%) |
| CIE-LAB | lab(18.94, 40.13, -51.48) |
| CIE-LCH | lch(18.94, 65.27, 307.93°) |
| OKLab | oklab(31.95% 0.0467 -0.1482) |
| OKLCH | oklch(31.95% 0.155 287.5) |
| XYZ | xyz(5.2772, 2.7337, 18.9846) |
| Luminance | 0.0273 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.01
Midnight Blue
#191970
ΔE00 4.29
Indigo
#4B0082
ΔE00 4.65
Royal
#0C1793
ΔE00 5.19
Navy
#000080
ΔE00 5.60
Deep Blue
#040273
ΔE00 5.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#34167B #5D7B16
analogous
#162A7B #34167B #66167B
triadic
#34167B #7B3416 #167B34
tetradic
#34167B #7B162A #5D7B16 #167B66
square
#34167B #7B162A #5D7B16 #167B66
split-complementary
#34167B #7B6616 #2A7B16
monochromatic
#0B051A #1E0D47 #34167B #4A1FAF #6331DA
Accessibility & contrast
On white
13.58
#34167B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#34167B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #34167B
13.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##34167B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##34167B | 1.00 | 13.58 | 1.55 | 13.58 |
| #FFFFFF | 13.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#143449
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #34167b; /* rgb */ color: rgb(52, 22, 123); /* oklch */ color: oklch(31.9% 0.155 287.5);
Tailwind
colors: {
custom: {
50: '#7558a2',
500: '#34167b',
950: '#000000',
},
}SCSS
$custom: #34167b; $custom-light: #7558a2; $custom-dark: #000000;
JSON
{
"hex": "#34167b",
"rgb": {
"r": 52,
"g": 22,
"b": 123
},
"hsl": {
"h": 257.822,
"s": 69.655,
"l": 28.431
},
"oklch": {
"l": 0.31946,
"c": 0.15538,
"h": 287.5
},
"luminance": 0.02734
}Semantic roles & 50–950 ramp
primary
#34167B
secondary
#8EB03D
accent
#EC3BB8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F