#342E99#342E99
#342E99 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.3% C 0.167 H 277.5°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).
Color values
| HEX | #342E99 |
|---|---|
| RGB | rgb(52, 46, 153) |
| HSL | hsl(243, 54%, 39%) |
| HSV | hsv(243, 70%, 60%) |
| CMYK | cmyk(66%, 69.9%, 0%, 40%) |
| CIE-LAB | lab(26.69, 36.41, -57.50) |
| CIE-LCH | lch(26.69, 68.05, 302.34°) |
| OKLab | oklab(38.34% 0.0218 -0.1659) |
| OKLCH | oklch(38.34% 0.167 277.5) |
| XYZ | xyz(8.1411, 4.9833, 30.6637) |
| Luminance | 0.0498 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.35
Indigo Blue
#3A18B1
ΔE00 5.66
Blueberry
#464196
ΔE00 5.79
Darkslateblue
#483D8B
ΔE00 5.89
Royal
#0C1793
ΔE00 5.93
Ocean Blue
#4F42B5
ΔE00 7.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342E99 #93992E
analogous
#2E5E99 #342E99 #6A2E99
triadic
#342E99 #99342E #2E9934
tetradic
#342E99 #992E5E #93992E #2E996A
square
#342E99 #992E5E #93992E #2E996A
split-complementary
#342E99 #996A2E #5E992E
monochromatic
#14123B #24206A #342E99 #463FC5 #746ED3
Accessibility & contrast
On white
10.52
#342E99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.00
#342E99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342E99
10.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342E99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342E99 | 1.00 | 10.52 | 2.00 | 10.52 |
| #FFFFFF | 10.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00449C
Deuteranopia (green-blind)
#003B97
Tritanopia (blue-blind)
#004B60
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #342e99; /* rgb */ color: rgb(52, 46, 153); /* oklch */ color: oklch(38.3% 0.167 277.5);
Tailwind
colors: {
custom: {
50: '#7968b8',
500: '#342e99',
950: '#000000',
},
}SCSS
$custom: #342e99; $custom-light: #7968b8; $custom-dark: #000000;
JSON
{
"hex": "#342e99",
"rgb": {
"r": 52,
"g": 46,
"b": 153
},
"hsl": {
"h": 243.364,
"s": 53.769,
"l": 39.02
},
"oklch": {
"l": 0.38338,
"c": 0.16734,
"h": 277.5
},
"luminance": 0.04984
}Semantic roles & 50–950 ramp
primary
#342E99
secondary
#B6BB68
accent
#DD4BD5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80