#34187F#34187F
#34187F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.158 H 286.1°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).
Color values
| HEX | #34187F |
|---|---|
| RGB | rgb(52, 24, 127) |
| HSL | hsl(256, 68%, 30%) |
| HSV | hsv(256, 81%, 50%) |
| CMYK | cmyk(59.1%, 81.1%, 0%, 50.2%) |
| CIE-LAB | lab(19.70, 40.35, -52.78) |
| CIE-LCH | lch(19.70, 66.44, 307.40°) |
| OKLab | oklab(32.6% 0.044 -0.152) |
| OKLCH | oklch(32.6% 0.158 286.1) |
| XYZ | xyz(5.5724, 2.9153, 20.3436) |
| Luminance | 0.0292 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.19
Midnight Blue
#191970
ΔE00 4.37
Royal
#0C1793
ΔE00 4.68
Indigo
#4B0082
ΔE00 4.83
Darkblue
#00008B
ΔE00 5.61
Navy
#000080
ΔE00 5.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#34187F #637F18
analogous
#182F7F #34187F #68187F
triadic
#34187F #7F3418 #187F34
tetradic
#34187F #7F182F #637F18 #187F68
square
#34187F #7F182F #637F18 #187F68
split-complementary
#34187F #7F6818 #2F7F18
monochromatic
#0B051A #1F0E4C #34187F #4922B2 #6438D9
Accessibility & contrast
On white
13.26
#34187F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#34187F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #34187F
13.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##34187F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##34187F | 1.00 | 13.26 | 1.58 | 13.26 |
| #FFFFFF | 13.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#0E364B
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #34187f; /* rgb */ color: rgb(52, 24, 127); /* oklch */ color: oklch(32.6% 0.158 286.1);
Tailwind
colors: {
custom: {
50: '#7559a5',
500: '#34187f',
950: '#000000',
},
}SCSS
$custom: #34187f; $custom-light: #7559a5; $custom-dark: #000000;
JSON
{
"hex": "#34187f",
"rgb": {
"r": 52,
"g": 24,
"b": 127
},
"hsl": {
"h": 256.311,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.326,
"c": 0.15824,
"h": 286.1
},
"luminance": 0.02916
}Semantic roles & 50–950 ramp
primary
#34187F
secondary
#94B33F
accent
#EB3DBC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F