#34166C#34166C
#34166C is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.137 H 292.0°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).
Color values
| HEX | #34166C |
|---|---|
| RGB | rgb(52, 22, 108) |
| HSL | hsl(261, 66%, 25%) |
| HSV | hsv(261, 80%, 42%) |
| CMYK | cmyk(51.9%, 79.6%, 0%, 57.6%) |
| CIE-LAB | lab(17.40, 35.70, -44.35) |
| CIE-LCH | lch(17.40, 56.93, 308.84°) |
| OKLab | oklab(30.4% 0.0515 -0.1273) |
| OKLCH | oklch(30.4% 0.137 292) |
| XYZ | xyz(4.4091, 2.3864, 14.4128) |
| Luminance | 0.0239 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 4.46
Indigo (survey)
#380282
ΔE00 4.74
Dark Indigo
#1F0954
ΔE00 5.05
Royal Purple (survey)
#4B006E
ΔE00 5.41
Indigo
#4B0082
ΔE00 5.65
Dark Royal Blue
#02066F
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#34166C #4E6C16
analogous
#16236C #34166C #5F166C
triadic
#34166C #6C3416 #166C34
tetradic
#34166C #6C1623 #4E6C16 #166C5F
square
#34166C #6C1623 #4E6C16 #166C5F
split-complementary
#34166C #6C5F16 #236C16
monochromatic
#0C0519 #1C0C39 #34166C #4C209F #652BD2
Accessibility & contrast
On white
14.21
#34166C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#34166C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #34166C
14.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##34166C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##34166C | 1.00 | 14.21 | 1.48 | 14.21 |
| #FFFFFF | 14.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C6E
Deuteranopia (green-blind)
#00296A
Tritanopia (blue-blind)
#222E40
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #34166c; /* rgb */ color: rgb(52, 22, 108); /* oklch */ color: oklch(30.4% 0.137 292.0);
Tailwind
colors: {
custom: {
50: '#725797',
500: '#34166c',
950: '#000000',
},
}SCSS
$custom: #34166c; $custom-light: #725797; $custom-dark: #000000;
JSON
{
"hex": "#34166c",
"rgb": {
"r": 52,
"g": 22,
"b": 108
},
"hsl": {
"h": 260.93,
"s": 66.154,
"l": 25.49
},
"oklch": {
"l": 0.30398,
"c": 0.13732,
"h": 292
},
"luminance": 0.02387
}Semantic roles & 50–950 ramp
primary
#34166C
secondary
#7EA23C
accent
#E93FAE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E