#34147B#34147B
#34147B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.157 H 287.8°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).
Color values
| HEX | #34147B |
|---|---|
| RGB | rgb(52, 20, 123) |
| HSL | hsl(259, 72%, 28%) |
| HSV | hsv(259, 84%, 48%) |
| CMYK | cmyk(57.7%, 83.7%, 0%, 51.8%) |
| CIE-LAB | lab(18.63, 41.04, -52.00) |
| CIE-LCH | lch(18.63, 66.25, 308.28°) |
| OKLab | oklab(31.73% 0.0481 -0.1497) |
| OKLCH | oklch(31.73% 0.157 287.8) |
| XYZ | xyz(5.2404, 2.6602, 18.9724) |
| Luminance | 0.0266 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.66
Indigo
#4B0082
ΔE00 4.43
Midnight Blue
#191970
ΔE00 4.45
Royal
#0C1793
ΔE00 5.22
Navy
#000080
ΔE00 5.38
Deep Blue
#040273
ΔE00 5.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#34147B #5B7B14
analogous
#14277B #34147B #67147B
triadic
#34147B #7B3414 #147B34
tetradic
#34147B #7B1427 #5B7B14 #147B67
square
#34147B #7B1427 #5B7B14 #147B67
split-complementary
#34147B #7B6714 #277B14
monochromatic
#0B041A #1E0B46 #34147B #4A1DB0 #632DDD
Accessibility & contrast
On white
13.71
#34147B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#34147B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #34147B
13.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##34147B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##34147B | 1.00 | 13.71 | 1.53 | 13.71 |
| #FFFFFF | 13.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#143348
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #34147b; /* rgb */ color: rgb(52, 20, 123); /* oklch */ color: oklch(31.7% 0.157 287.8);
Tailwind
colors: {
custom: {
50: '#7557a2',
500: '#34147b',
950: '#000000',
},
}SCSS
$custom: #34147b; $custom-light: #7557a2; $custom-dark: #000000;
JSON
{
"hex": "#34147b",
"rgb": {
"r": 52,
"g": 20,
"b": 123
},
"hsl": {
"h": 258.641,
"s": 72.028,
"l": 28.039
},
"oklch": {
"l": 0.31727,
"c": 0.15721,
"h": 287.8
},
"luminance": 0.0266
}Semantic roles & 50–950 ramp
primary
#34147B
secondary
#8CB13A
accent
#EF39B6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F