#342181#342181
#342181 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.151 H 284.0°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).
Color values
| HEX | #342181 |
|---|---|
| RGB | rgb(52, 33, 129) |
| HSL | hsl(252, 59%, 32%) |
| HSV | hsv(252, 74%, 51%) |
| CMYK | cmyk(59.7%, 74.4%, 0%, 49.4%) |
| CIE-LAB | lab(21.59, 36.19, -50.95) |
| CIE-LCH | lch(21.59, 62.49, 305.39°) |
| OKLab | oklab(33.99% 0.0365 -0.1467) |
| OKLCH | oklch(33.99% 0.151 284) |
| XYZ | xyz(5.9213, 3.4024, 21.1093) |
| Luminance | 0.0340 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 4.38
Royal
#0C1793
ΔE00 4.88
Indigo (survey)
#380282
ΔE00 5.17
Indigo
#4B0082
ΔE00 6.37
Darkblue
#00008B
ΔE00 6.93
Navy
#000080
ΔE00 7.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342181 #6E8121
analogous
#213E81 #342181 #642181
triadic
#342181 #813421 #218134
tetradic
#342181 #81213E #6E8121 #218164
square
#342181 #81213E #6E8121 #218164
split-complementary
#342181 #816421 #3E8121
monochromatic
#0D0820 #201550 #342181 #482DB2 #664BD1
Accessibility & contrast
On white
12.50
#342181 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#342181 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342181
12.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342181 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342181 | 1.00 | 12.50 | 1.68 | 12.50 |
| #FFFFFF | 12.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#00317F
Tritanopia (blue-blind)
#093B4F
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #342181; /* rgb */ color: rgb(52, 33, 129); /* oklch */ color: oklch(34.0% 0.151 284.0);
Tailwind
colors: {
custom: {
50: '#755ea7',
500: '#342181',
950: '#000000',
},
}SCSS
$custom: #342181; $custom-light: #755ea7; $custom-dark: #000000;
JSON
{
"hex": "#342181",
"rgb": {
"r": 52,
"g": 33,
"b": 129
},
"hsl": {
"h": 251.875,
"s": 59.259,
"l": 31.765
},
"oklch": {
"l": 0.33989,
"c": 0.1512,
"h": 284
},
"luminance": 0.03403
}Semantic roles & 50–950 ramp
primary
#342181
secondary
#9FB44A
accent
#E245C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F