#34187E#34187E
#34187E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.157 H 286.4°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).
Color values
| HEX | #34187E |
|---|---|
| RGB | rgb(52, 24, 126) |
| HSL | hsl(256, 68%, 29%) |
| HSV | hsv(256, 81%, 49%) |
| CMYK | cmyk(58.7%, 81%, 0%, 50.6%) |
| CIE-LAB | lab(19.60, 40.06, -52.32) |
| CIE-LCH | lch(19.60, 65.89, 307.44°) |
| OKLab | oklab(32.5% 0.0443 -0.1507) |
| OKLCH | oklch(32.5% 0.157 286.4) |
| XYZ | xyz(5.5076, 2.8894, 20.0021) |
| Luminance | 0.0289 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.23
Midnight Blue
#191970
ΔE00 4.31
Royal
#0C1793
ΔE00 4.80
Indigo
#4B0082
ΔE00 4.85
Darkblue
#00008B
ΔE00 5.68
Navy
#000080
ΔE00 5.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#34187E #627E18
analogous
#182F7E #34187E #67187E
triadic
#34187E #7E3418 #187E34
tetradic
#34187E #7E182F #627E18 #187E67
square
#34187E #7E182F #627E18 #187E67
split-complementary
#34187E #7E6718 #2F7E18
monochromatic
#0B051A #1F0E4B #34187E #4922B1 #6437D9
Accessibility & contrast
On white
13.31
#34187E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#34187E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #34187E
13.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##34187E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##34187E | 1.00 | 13.31 | 1.58 | 13.31 |
| #FFFFFF | 13.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#10364B
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #34187e; /* rgb */ color: rgb(52, 24, 126); /* oklch */ color: oklch(32.5% 0.157 286.4);
Tailwind
colors: {
custom: {
50: '#7559a4',
500: '#34187e',
950: '#000000',
},
}SCSS
$custom: #34187e; $custom-light: #7559a4; $custom-dark: #000000;
JSON
{
"hex": "#34187e",
"rgb": {
"r": 52,
"g": 24,
"b": 126
},
"hsl": {
"h": 256.471,
"s": 68,
"l": 29.412
},
"oklch": {
"l": 0.32495,
"c": 0.15705,
"h": 286.4
},
"luminance": 0.0289
}Semantic roles & 50–950 ramp
primary
#34187E
secondary
#93B23F
accent
#EB3DBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F