#34147C#34147C
#34147C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.158 H 287.5°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).
Color values
| HEX | #34147C |
|---|---|
| RGB | rgb(52, 20, 124) |
| HSL | hsl(258, 72%, 28%) |
| HSV | hsv(258, 84%, 49%) |
| CMYK | cmyk(58.1%, 83.9%, 0%, 51.4%) |
| CIE-LAB | lab(18.74, 41.33, -52.46) |
| CIE-LCH | lch(18.74, 66.79, 308.23°) |
| OKLab | oklab(31.84% 0.0477 -0.151) |
| OKLCH | oklch(31.84% 0.158 287.5) |
| XYZ | xyz(5.3033, 2.6853, 19.3037) |
| Luminance | 0.0269 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.59
Indigo
#4B0082
ΔE00 4.40
Midnight Blue
#191970
ΔE00 4.49
Royal
#0C1793
ΔE00 5.09
Navy
#000080
ΔE00 5.33
Darkblue
#00008B
ΔE00 5.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#34147C #5C7C14
analogous
#14287C #34147C #68147C
triadic
#34147C #7C3414 #147C34
tetradic
#34147C #7C1428 #5C7C14 #147C68
square
#34147C #7C1428 #5C7C14 #147C68
split-complementary
#34147C #7C6814 #287C14
monochromatic
#0B041A #1E0B47 #34147C #4A1DB1 #632DDD
Accessibility & contrast
On white
13.66
#34147C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#34147C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #34147C
13.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##34147C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##34147C | 1.00 | 13.66 | 1.54 | 13.66 |
| #FFFFFF | 13.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#133349
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #34147c; /* rgb */ color: rgb(52, 20, 124); /* oklch */ color: oklch(31.8% 0.158 287.5);
Tailwind
colors: {
custom: {
50: '#7557a3',
500: '#34147c',
950: '#000000',
},
}SCSS
$custom: #34147c; $custom-light: #7557a3; $custom-dark: #000000;
JSON
{
"hex": "#34147c",
"rgb": {
"r": 52,
"g": 20,
"b": 124
},
"hsl": {
"h": 258.462,
"s": 72.222,
"l": 28.235
},
"oklch": {
"l": 0.31835,
"c": 0.15838,
"h": 287.5
},
"luminance": 0.02686
}Semantic roles & 50–950 ramp
primary
#34147C
secondary
#8DB23A
accent
#EF39B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F