#34147F#34147F
#34147F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.162 H 286.7°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).
Color values
| HEX | #34147F |
|---|---|
| RGB | rgb(52, 20, 127) |
| HSL | hsl(258, 73%, 29%) |
| HSV | hsv(258, 84%, 50%) |
| CMYK | cmyk(59.1%, 84.3%, 0%, 50.2%) |
| CIE-LAB | lab(19.07, 42.20, -53.83) |
| CIE-LCH | lch(19.07, 68.40, 308.09°) |
| OKLab | oklab(32.16% 0.0466 -0.155) |
| OKLCH | oklch(32.16% 0.162 286.7) |
| XYZ | xyz(5.4959, 2.7624, 20.3181) |
| Luminance | 0.0276 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.45
Indigo
#4B0082
ΔE00 4.37
Midnight Blue
#191970
ΔE00 4.66
Royal
#0C1793
ΔE00 4.74
Darkblue
#00008B
ΔE00 5.16
Navy
#000080
ΔE00 5.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#34147F #5F7F14
analogous
#142A7F #34147F #6A147F
triadic
#34147F #7F3414 #147F34
tetradic
#34147F #7F142A #5F7F14 #147F6A
square
#34147F #7F142A #5F7F14 #147F6A
split-complementary
#34147F #7F6A14 #2A7F14
monochromatic
#0B041A #1E0C4A #34147F #4A1CB4 #642FDE
Accessibility & contrast
On white
13.53
#34147F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#34147F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #34147F
13.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##34147F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##34147F | 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)
#003182
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#0F354B
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #34147f; /* rgb */ color: rgb(52, 20, 127); /* oklch */ color: oklch(32.2% 0.162 286.7);
Tailwind
colors: {
custom: {
50: '#7657a5',
500: '#34147f',
950: '#000000',
},
}SCSS
$custom: #34147f; $custom-light: #7657a5; $custom-dark: #000000;
JSON
{
"hex": "#34147f",
"rgb": {
"r": 52,
"g": 20,
"b": 127
},
"hsl": {
"h": 257.944,
"s": 72.789,
"l": 28.824
},
"oklch": {
"l": 0.3216,
"c": 0.16187,
"h": 286.7
},
"luminance": 0.02763
}Semantic roles & 50–950 ramp
primary
#34147F
secondary
#90B43B
accent
#EF38B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F