#342E9E#342E9E
#342E9E is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.8% C 0.174 H 276.9°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).
Color values
| HEX | #342E9E |
|---|---|
| RGB | rgb(52, 46, 158) |
| HSL | hsl(243, 55%, 40%) |
| HSV | hsv(243, 71%, 62%) |
| CMYK | cmyk(67.1%, 70.9%, 0%, 38%) |
| CIE-LAB | lab(27.16, 38.10, -59.77) |
| CIE-LCH | lch(27.16, 70.88, 302.51°) |
| OKLab | oklab(38.82% 0.021 -0.1726) |
| OKLCH | oklch(38.82% 0.174 276.9) |
| XYZ | xyz(8.5627, 5.1519, 32.8843) |
| Luminance | 0.0515 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.02
Indigo Blue
#3A18B1
ΔE00 5.19
Blueberry
#464196
ΔE00 5.97
Royal
#0C1793
ΔE00 6.02
Darkslateblue
#483D8B
ΔE00 6.28
Ocean Blue
#4F42B5
ΔE00 6.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342E9E #989E2E
analogous
#2E609E #342E9E #6C2E9E
triadic
#342E9E #9E342E #2E9E34
tetradic
#342E9E #9E2E60 #989E2E #2E9E6C
square
#342E9E #9E2E60 #989E2E #2E9E6C
split-complementary
#342E9E #9E6C2E #609E2E
monochromatic
#15123F #24206F #342E9E #4941C8 #7671D6
Accessibility & contrast
On white
10.34
#342E9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.03
#342E9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342E9E
10.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342E9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342E9E | 1.00 | 10.34 | 2.03 | 10.34 |
| #FFFFFF | 10.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#003B9C
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #342e9e; /* rgb */ color: rgb(52, 46, 158); /* oklch */ color: oklch(38.8% 0.174 276.9);
Tailwind
colors: {
custom: {
50: '#7a68bc',
500: '#342e9e',
950: '#000000',
},
}SCSS
$custom: #342e9e; $custom-light: #7a68bc; $custom-dark: #000000;
JSON
{
"hex": "#342e9e",
"rgb": {
"r": 52,
"g": 46,
"b": 158
},
"hsl": {
"h": 243.214,
"s": 54.902,
"l": 40
},
"oklch": {
"l": 0.38825,
"c": 0.17384,
"h": 276.9
},
"luminance": 0.05153
}Semantic roles & 50–950 ramp
primary
#342E9E
secondary
#B9BD6B
accent
#DE4AD6
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0612
muted
#7C7A81