#342F82#342F82
#342F82 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.4% C 0.135 H 280.0°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).
Color values
| HEX | #342F82 |
|---|---|
| RGB | rgb(52, 47, 130) |
| HSL | hsl(244, 47%, 35%) |
| HSV | hsv(244, 64%, 51%) |
| CMYK | cmyk(60%, 63.8%, 0%, 49%) |
| CIE-LAB | lab(24.87, 27.88, -46.21) |
| CIE-LCH | lch(24.87, 53.97, 301.11°) |
| OKLab | oklab(36.39% 0.0235 -0.1328) |
| OKLCH | oklch(36.39% 0.135 280) |
| XYZ | xyz(6.4607, 4.3744, 21.6187) |
| Luminance | 0.0437 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.75
Blueberry
#464196
ΔE00 5.82
Midnight Blue
#191970
ΔE00 6.42
Sapphire (survey)
#2138AB
ΔE00 6.88
Royal
#0C1793
ΔE00 7.29
Indigo Blue
#3A18B1
ΔE00 8.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342F82 #7D822F
analogous
#2F5482 #342F82 #5D2F82
triadic
#342F82 #82342F #2F8234
tetradic
#342F82 #822F54 #7D822F #2F825D
square
#342F82 #822F54 #7D822F #2F825D
split-complementary
#342F82 #825D2F #54822F
monochromatic
#100E28 #221F55 #342F82 #463FAF #6A64C7
Accessibility & contrast
On white
11.20
#342F82 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.88
#342F82 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342F82
11.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342F82 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342F82 | 1.00 | 11.20 | 1.88 | 11.20 |
| #FFFFFF | 11.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E85
Deuteranopia (green-blind)
#003880
Tritanopia (blue-blind)
#034354
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #342f82; /* rgb */ color: rgb(52, 47, 130); /* oklch */ color: oklch(36.4% 0.135 280.0);
Tailwind
colors: {
custom: {
50: '#7468a7',
500: '#342f82',
950: '#000000',
},
}SCSS
$custom: #342f82; $custom-light: #7468a7; $custom-dark: #000000;
JSON
{
"hex": "#342f82",
"rgb": {
"r": 52,
"g": 47,
"b": 130
},
"hsl": {
"h": 243.614,
"s": 46.893,
"l": 34.706
},
"oklch": {
"l": 0.36387,
"c": 0.13486,
"h": 280
},
"luminance": 0.04375
}Semantic roles & 50–950 ramp
primary
#342F82
secondary
#A9AE5F
accent
#D751CE
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F