#342CA6#342CA6
#342CA6 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.3% C 0.186 H 276.4°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).
Color values
| HEX | #342CA6 |
|---|---|
| RGB | rgb(52, 44, 166) |
| HSL | hsl(244, 58%, 41%) |
| HSV | hsv(244, 73%, 65%) |
| CMYK | cmyk(68.7%, 73.5%, 0%, 34.9%) |
| CIE-LAB | lab(27.53, 41.93, -64.02) |
| CIE-LCH | lch(27.53, 76.53, 303.22°) |
| OKLab | oklab(39.32% 0.0209 -0.185) |
| OKLCH | oklch(39.32% 0.186 276.4) |
| XYZ | xyz(9.1975, 5.2838, 36.6042) |
| Luminance | 0.0529 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.15
Sapphire (survey)
#2138AB
ΔE00 4.18
Royal
#0C1793
ΔE00 6.01
True Blue
#010FCC
ΔE00 6.32
Cobalt Blue
#030AA7
ΔE00 6.51
Ultramarine
#2000B1
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342CA6 #9EA62C
analogous
#2C61A6 #342CA6 #712CA6
triadic
#342CA6 #A6342C #2CA634
tetradic
#342CA6 #A62C61 #9EA62C #2CA671
square
#342CA6 #A62C61 #9EA62C #2CA671
split-complementary
#342CA6 #A6712C #61A62C
monochromatic
#161245 #251F76 #342CA6 #4B42CD #7973DA
Accessibility & contrast
On white
10.21
#342CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.06
#342CA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342CA6
10.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342CA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342CA6 | 1.00 | 10.21 | 2.06 | 10.21 |
| #FFFFFF | 10.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#003CA4
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #342ca6; /* rgb */ color: rgb(52, 44, 166); /* oklch */ color: oklch(39.3% 0.186 276.4);
Tailwind
colors: {
custom: {
50: '#7c67c2',
500: '#342ca6',
950: '#000000',
},
}SCSS
$custom: #342ca6; $custom-light: #7c67c2; $custom-dark: #000000;
JSON
{
"hex": "#342ca6",
"rgb": {
"r": 52,
"g": 44,
"b": 166
},
"hsl": {
"h": 243.934,
"s": 58.095,
"l": 41.176
},
"oklch": {
"l": 0.39324,
"c": 0.18615,
"h": 276.4
},
"luminance": 0.05285
}Semantic roles & 50–950 ramp
primary
#342CA6
secondary
#BCC16D
accent
#E146D7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81