#342FA6#342FA6
#342FA6 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.8% C 0.183 H 276.0°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).
Color values
| HEX | #342FA6 |
|---|---|
| RGB | rgb(52, 47, 166) |
| HSL | hsl(243, 56%, 42%) |
| HSV | hsv(243, 72%, 65%) |
| CMYK | cmyk(68.7%, 71.7%, 0%, 34.9%) |
| CIE-LAB | lab(28.16, 40.19, -62.98) |
| CIE-LCH | lch(28.16, 74.71, 302.54°) |
| OKLab | oklab(39.77% 0.019 -0.182) |
| OKLCH | oklch(39.77% 0.183 276) |
| XYZ | xyz(9.3134, 5.5154, 36.6428) |
| Luminance | 0.0552 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.53
Indigo Blue
#3A18B1
ΔE00 4.86
Ocean Blue
#4F42B5
ΔE00 6.12
Blueberry
#464196
ΔE00 6.16
Royal
#0C1793
ΔE00 6.56
Blue With A Hint Of Purple
#533CC6
ΔE00 6.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342FA6 #A1A62F
analogous
#2F66A6 #342FA6 #702FA6
triadic
#342FA6 #A6342F #2FA634
tetradic
#342FA6 #A62F66 #A1A62F #2FA670
square
#342FA6 #A62F66 #A1A62F #2FA670
split-complementary
#342FA6 #A6702F #66A62F
monochromatic
#161447 #252176 #342FA6 #4D47CB #7B77D8
Accessibility & contrast
On white
9.98
#342FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.10
#342FA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342FA6
9.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342FA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342FA6 | 1.00 | 9.98 | 2.10 | 9.98 |
| #FFFFFF | 9.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#003DA4
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #342fa6; /* rgb */ color: rgb(52, 47, 166); /* oklch */ color: oklch(39.8% 0.183 276.0);
Tailwind
colors: {
custom: {
50: '#7c69c2',
500: '#342fa6',
950: '#000000',
},
}SCSS
$custom: #342fa6; $custom-light: #7c69c2; $custom-dark: #000000;
JSON
{
"hex": "#342fa6",
"rgb": {
"r": 52,
"g": 47,
"b": 166
},
"hsl": {
"h": 242.521,
"s": 55.869,
"l": 41.765
},
"oklch": {
"l": 0.39771,
"c": 0.18296,
"h": 276
},
"luminance": 0.05516
}Semantic roles & 50–950 ramp
primary
#342FA6
secondary
#BDC170
accent
#DF49D9
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81