#34188B#34188B
#34188B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.9% C 0.172 H 283.4°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).
Color values
| HEX | #34188B |
|---|---|
| RGB | rgb(52, 24, 139) |
| HSL | hsl(255, 71%, 32%) |
| HSV | hsv(255, 83%, 55%) |
| CMYK | cmyk(62.6%, 82.7%, 0%, 45.5%) |
| CIE-LAB | lab(21.01, 43.92, -58.19) |
| CIE-LCH | lch(21.01, 72.90, 307.04°) |
| OKLab | oklab(33.89% 0.04 -0.1678) |
| OKLCH | oklch(33.89% 0.172 283.4) |
| XYZ | xyz(6.4016, 3.2470, 24.7105) |
| Luminance | 0.0325 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.38
Royal
#0C1793
ΔE00 3.60
Cobalt Blue
#030AA7
ΔE00 5.00
Indigo
#4B0082
ΔE00 5.06
Darkblue
#00008B
ΔE00 5.13
Indigo Blue
#3A18B1
ΔE00 5.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#34188B #6F8B18
analogous
#18358B #34188B #6E188B
triadic
#34188B #8B3418 #188B34
tetradic
#34188B #8B1835 #6F8B18 #188B6E
square
#34188B #8B1835 #6F8B18 #188B6E
split-complementary
#34188B #8B6E18 #358B18
monochromatic
#0D0623 #200F57 #34188B #4821BF #663FDE
Accessibility & contrast
On white
12.73
#34188B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#34188B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #34188B
12.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##34188B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##34188B | 1.00 | 12.73 | 1.65 | 12.73 |
| #FFFFFF | 12.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #34188b; /* rgb */ color: rgb(52, 24, 139); /* oklch */ color: oklch(33.9% 0.172 283.4);
Tailwind
colors: {
custom: {
50: '#785aae',
500: '#34188b',
950: '#000000',
},
}SCSS
$custom: #34188b; $custom-light: #785aae; $custom-dark: #000000;
JSON
{
"hex": "#34188b",
"rgb": {
"r": 52,
"g": 24,
"b": 139
},
"hsl": {
"h": 254.609,
"s": 70.552,
"l": 31.961
},
"oklch": {
"l": 0.33895,
"c": 0.17248,
"h": 283.4
},
"luminance": 0.03247
}Semantic roles & 50–950 ramp
primary
#34188B
secondary
#A0BE40
accent
#ED3AC2
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F