#342E79#342E79
#342E79 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.4% C 0.123 H 281.7°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).
Color values
| HEX | #342E79 |
|---|---|
| RGB | rgb(52, 46, 121) |
| HSL | hsl(245, 45%, 33%) |
| HSV | hsv(245, 62%, 47%) |
| CMYK | cmyk(57%, 62%, 0%, 52.5%) |
| CIE-LAB | lab(23.88, 25.43, -42.13) |
| CIE-LCH | lch(23.88, 49.21, 301.11°) |
| OKLab | oklab(35.43% 0.025 -0.1208) |
| OKLCH | oklch(35.43% 0.123 281.7) |
| XYZ | xyz(5.8433, 4.0642, 18.5620) |
| Luminance | 0.0406 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.22
Midnight Blue
#191970
ΔE00 6.15
Blueberry
#464196
ΔE00 6.70
Royal
#0C1793
ΔE00 8.13
Sapphire (survey)
#2138AB
ΔE00 8.37
Marine
#042E60
ΔE00 8.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342E79 #73792E
analogous
#2E4D79 #342E79 #592E79
triadic
#342E79 #79342E #2E7934
tetradic
#342E79 #792E4D #73792E #2E7959
square
#342E79 #792E4D #73792E #2E7959
split-complementary
#342E79 #79592E #4D792E
monochromatic
#0E0C20 #211D4D #342E79 #473FA5 #675FC2
Accessibility & contrast
On white
11.58
#342E79 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#342E79 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342E79
11.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342E79 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342E79 | 1.00 | 11.58 | 1.81 | 11.58 |
| #FFFFFF | 11.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B7B
Deuteranopia (green-blind)
#003677
Tritanopia (blue-blind)
#14404E
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #342e79; /* rgb */ color: rgb(52, 46, 121); /* oklch */ color: oklch(35.4% 0.123 281.7);
Tailwind
colors: {
custom: {
50: '#7267a0',
500: '#342e79',
950: '#000000',
},
}SCSS
$custom: #342e79; $custom-light: #7267a0; $custom-dark: #000000;
JSON
{
"hex": "#342e79",
"rgb": {
"r": 52,
"g": 46,
"b": 121
},
"hsl": {
"h": 244.8,
"s": 44.91,
"l": 32.745
},
"oklch": {
"l": 0.35428,
"c": 0.12339,
"h": 281.7
},
"luminance": 0.04065
}Semantic roles & 50–950 ramp
primary
#342E79
secondary
#A3A95A
accent
#D553CA
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E