#34187C#34187C
#34187C is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.155 H 286.9°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).
Color values
| HEX | #34187C |
|---|---|
| RGB | rgb(52, 24, 124) |
| HSL | hsl(257, 68%, 29%) |
| HSV | hsv(257, 81%, 49%) |
| CMYK | cmyk(58.1%, 80.6%, 0%, 51.4%) |
| CIE-LAB | lab(19.38, 39.46, -51.40) |
| CIE-LCH | lch(19.38, 64.80, 307.51°) |
| OKLab | oklab(32.28% 0.0449 -0.148) |
| OKLCH | oklch(32.28% 0.155 286.9) |
| XYZ | xyz(5.3798, 2.8383, 19.3292) |
| Luminance | 0.0284 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.33
Midnight Blue
#191970
ΔE00 4.19
Indigo
#4B0082
ΔE00 4.88
Royal
#0C1793
ΔE00 5.05
Navy
#000080
ΔE00 5.80
Dark Royal Blue
#02066F
ΔE00 5.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#34187C #607C18
analogous
#182E7C #34187C #66187C
triadic
#34187C #7C3418 #187C34
tetradic
#34187C #7C182E #607C18 #187C66
square
#34187C #7C182E #607C18 #187C66
split-complementary
#34187C #7C6618 #2E7C18
monochromatic
#0B051A #1E0E49 #34187C #4A22AF #6436D8
Accessibility & contrast
On white
13.39
#34187C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#34187C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #34187C
13.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##34187C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##34187C | 1.00 | 13.39 | 1.57 | 13.39 |
| #FFFFFF | 13.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002C7A
Tritanopia (blue-blind)
#13354A
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #34187c; /* rgb */ color: rgb(52, 24, 124); /* oklch */ color: oklch(32.3% 0.155 286.9);
Tailwind
colors: {
custom: {
50: '#7559a3',
500: '#34187c',
950: '#000000',
},
}SCSS
$custom: #34187c; $custom-light: #7559a3; $custom-dark: #000000;
JSON
{
"hex": "#34187c",
"rgb": {
"r": 52,
"g": 24,
"b": 124
},
"hsl": {
"h": 256.8,
"s": 67.568,
"l": 29.02
},
"oklch": {
"l": 0.32284,
"c": 0.15463,
"h": 286.9
},
"luminance": 0.02839
}Semantic roles & 50–950 ramp
primary
#34187C
secondary
#91B13F
accent
#EA3DBA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F