#342CA4#342CA4
#342CA4 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.1% C 0.184 H 276.7°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).
Color values
| HEX | #342CA4 |
|---|---|
| RGB | rgb(52, 44, 164) |
| HSL | hsl(244, 58%, 41%) |
| HSV | hsv(244, 73%, 64%) |
| CMYK | cmyk(68.3%, 73.2%, 0%, 35.7%) |
| CIE-LAB | lab(27.33, 41.27, -63.14) |
| CIE-LCH | lch(27.33, 75.43, 303.17°) |
| OKLab | oklab(39.12% 0.0213 -0.1824) |
| OKLCH | oklch(39.12% 0.184 276.7) |
| XYZ | xyz(9.0155, 5.2110, 35.6455) |
| Luminance | 0.0521 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.22
Indigo Blue
#3A18B1
ΔE00 4.27
Royal
#0C1793
ΔE00 5.89
True Blue
#010FCC
ΔE00 6.52
Cobalt Blue
#030AA7
ΔE00 6.52
Blueberry
#464196
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342CA4 #9CA42C
analogous
#2C60A4 #342CA4 #702CA4
triadic
#342CA4 #A4342C #2CA434
tetradic
#342CA4 #A42C60 #9CA42C #2CA470
square
#342CA4 #A42C60 #9CA42C #2CA470
split-complementary
#342CA4 #A4702C #60A42C
monochromatic
#151243 #251F74 #342CA4 #4A41CC #7871D9
Accessibility & contrast
On white
10.28
#342CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.04
#342CA4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342CA4
10.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342CA4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342CA4 | 1.00 | 10.28 | 2.04 | 10.28 |
| #FFFFFF | 10.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046A8
Deuteranopia (green-blind)
#003BA2
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #342ca4; /* rgb */ color: rgb(52, 44, 164); /* oklch */ color: oklch(39.1% 0.184 276.7);
Tailwind
colors: {
custom: {
50: '#7b67c0',
500: '#342ca4',
950: '#000000',
},
}SCSS
$custom: #342ca4; $custom-light: #7b67c0; $custom-dark: #000000;
JSON
{
"hex": "#342ca4",
"rgb": {
"r": 52,
"g": 44,
"b": 164
},
"hsl": {
"h": 244,
"s": 57.692,
"l": 40.784
},
"oklch": {
"l": 0.3912,
"c": 0.18365,
"h": 276.7
},
"luminance": 0.05212
}Semantic roles & 50–950 ramp
primary
#342CA4
secondary
#BBC06B
accent
#E147D7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81