#34166F#34166F
#34166F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.141 H 291.0°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).
Color values
| HEX | #34166F |
|---|---|
| RGB | rgb(52, 22, 111) |
| HSL | hsl(260, 67%, 26%) |
| HSV | hsv(260, 80%, 44%) |
| CMYK | cmyk(53.2%, 80.2%, 0%, 56.5%) |
| CIE-LAB | lab(17.70, 36.59, -45.81) |
| CIE-LCH | lch(17.70, 58.62, 308.62°) |
| OKLab | oklab(30.7% 0.0506 -0.1316) |
| OKLCH | oklch(30.7% 0.141 291) |
| XYZ | xyz(4.5715, 2.4514, 15.2681) |
| Luminance | 0.0245 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 4.28
Indigo (survey)
#380282
ΔE00 4.30
Indigo
#4B0082
ΔE00 5.36
Dark Indigo
#1F0954
ΔE00 5.39
Royal Purple (survey)
#4B006E
ΔE00 5.46
Dark Royal Blue
#02066F
ΔE00 5.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#34166F #516F16
analogous
#16246F #34166F #60166F
triadic
#34166F #6F3416 #166F34
tetradic
#34166F #6F1624 #516F16 #166F60
square
#34166F #6F1624 #516F16 #166F60
split-complementary
#34166F #6F6016 #246F16
monochromatic
#0C051A #1C0C3C #34166F #4C20A2 #642BD5
Accessibility & contrast
On white
14.09
#34166F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#34166F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #34166F
14.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##34166F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##34166F | 1.00 | 14.09 | 1.49 | 14.09 |
| #FFFFFF | 14.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D72
Deuteranopia (green-blind)
#00296D
Tritanopia (blue-blind)
#202F42
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #34166f; /* rgb */ color: rgb(52, 22, 111); /* oklch */ color: oklch(30.7% 0.141 291.0);
Tailwind
colors: {
custom: {
50: '#735799',
500: '#34166f',
950: '#000000',
},
}SCSS
$custom: #34166f; $custom-light: #735799; $custom-dark: #000000;
JSON
{
"hex": "#34166f",
"rgb": {
"r": 52,
"g": 22,
"b": 111
},
"hsl": {
"h": 260.225,
"s": 66.917,
"l": 26.078
},
"oklch": {
"l": 0.307,
"c": 0.14097,
"h": 291
},
"luminance": 0.02452
}Semantic roles & 50–950 ramp
primary
#34166F
secondary
#82A53C
accent
#EA3EB0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E