#342FA0#342FA0
#342FA0 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.2% C 0.175 H 276.6°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).
Color values
| HEX | #342FA0 |
|---|---|
| RGB | rgb(52, 47, 160) |
| HSL | hsl(243, 55%, 41%) |
| HSV | hsv(243, 71%, 63%) |
| CMYK | cmyk(67.5%, 70.6%, 0%, 37.3%) |
| CIE-LAB | lab(27.57, 38.17, -60.31) |
| CIE-LCH | lch(27.57, 71.37, 302.33°) |
| OKLab | oklab(39.18% 0.02 -0.1741) |
| OKLCH | oklch(39.18% 0.175 276.6) |
| XYZ | xyz(8.7758, 5.3004, 33.8115) |
| Luminance | 0.0530 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.71
Indigo Blue
#3A18B1
ΔE00 5.26
Blueberry
#464196
ΔE00 5.84
Darkslateblue
#483D8B
ΔE00 6.28
Royal
#0C1793
ΔE00 6.29
Ocean Blue
#4F42B5
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342FA0 #9BA02F
analogous
#2F62A0 #342FA0 #6C2FA0
triadic
#342FA0 #A0342F #2FA034
tetradic
#342FA0 #A02F62 #9BA02F #2FA06C
square
#342FA0 #A02F62 #9BA02F #2FA06C
split-complementary
#342FA0 #A06C2F #62A02F
monochromatic
#151341 #252171 #342FA0 #4A44C8 #7873D6
Accessibility & contrast
On white
10.19
#342FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.06
#342FA0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342FA0
10.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342FA0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342FA0 | 1.00 | 10.19 | 2.06 | 10.19 |
| #FFFFFF | 10.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046A3
Deuteranopia (green-blind)
#003C9E
Tritanopia (blue-blind)
#004E64
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #342fa0; /* rgb */ color: rgb(52, 47, 160); /* oklch */ color: oklch(39.2% 0.175 276.6);
Tailwind
colors: {
custom: {
50: '#7a69bd',
500: '#342fa0',
950: '#000000',
},
}SCSS
$custom: #342fa0; $custom-light: #7a69bd; $custom-dark: #000000;
JSON
{
"hex": "#342fa0",
"rgb": {
"r": 52,
"g": 47,
"b": 160
},
"hsl": {
"h": 242.655,
"s": 54.589,
"l": 40.588
},
"oklch": {
"l": 0.39178,
"c": 0.17529,
"h": 276.6
},
"luminance": 0.05301
}Semantic roles & 50–950 ramp
primary
#342FA0
secondary
#BABE6D
accent
#DE4AD7
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81