#342183#342183
#342183 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.2% C 0.154 H 283.6°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).
Color values
| HEX | #342183 |
|---|---|
| RGB | rgb(52, 33, 131) |
| HSL | hsl(252, 60%, 32%) |
| HSV | hsv(252, 75%, 51%) |
| CMYK | cmyk(60.3%, 74.8%, 0%, 48.6%) |
| CIE-LAB | lab(21.79, 36.83, -51.89) |
| CIE-LCH | lch(21.79, 63.63, 305.37°) |
| OKLab | oklab(34.19% 0.0361 -0.1495) |
| OKLCH | oklch(34.19% 0.154 283.6) |
| XYZ | xyz(6.0555, 3.4561, 21.8163) |
| Luminance | 0.0346 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 4.54
Royal
#0C1793
ΔE00 4.66
Indigo (survey)
#380282
ΔE00 5.12
Indigo
#4B0082
ΔE00 6.35
Indigo Blue
#3A18B1
ΔE00 6.80
Darkblue
#00008B
ΔE00 6.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342183 #708321
analogous
#213F83 #342183 #652183
triadic
#342183 #833421 #218334
tetradic
#342183 #83213F #708321 #218365
square
#342183 #83213F #708321 #218365
split-complementary
#342183 #836521 #3F8321
monochromatic
#0D0821 #211552 #342183 #472DB4 #664CD2
Accessibility & contrast
On white
12.42
#342183 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#342183 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342183
12.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342183 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342183 | 1.00 | 12.42 | 1.69 | 12.42 |
| #FFFFFF | 12.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003786
Deuteranopia (green-blind)
#003181
Tritanopia (blue-blind)
#053C50
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #342183; /* rgb */ color: rgb(52, 33, 131); /* oklch */ color: oklch(34.2% 0.154 283.6);
Tailwind
colors: {
custom: {
50: '#755ea8',
500: '#342183',
950: '#000000',
},
}SCSS
$custom: #342183; $custom-light: #755ea8; $custom-dark: #000000;
JSON
{
"hex": "#342183",
"rgb": {
"r": 52,
"g": 33,
"b": 131
},
"hsl": {
"h": 251.633,
"s": 59.756,
"l": 32.157
},
"oklch": {
"l": 0.34188,
"c": 0.15376,
"h": 283.6
},
"luminance": 0.03456
}Semantic roles & 50–950 ramp
primary
#342183
secondary
#A0B54B
accent
#E345C4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F