#342CA3#342CA3
#342CA3 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.0% C 0.182 H 276.8°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).
Color values
| HEX | #342CA3 |
|---|---|
| RGB | rgb(52, 44, 163) |
| HSL | hsl(244, 57%, 41%) |
| HSV | hsv(244, 73%, 64%) |
| CMYK | cmyk(68.1%, 73%, 0%, 36.1%) |
| CIE-LAB | lab(27.23, 40.94, -62.70) |
| CIE-LCH | lch(27.23, 74.88, 303.14°) |
| OKLab | oklab(39.02% 0.0215 -0.1811) |
| OKLCH | oklch(39.02% 0.182 276.8) |
| XYZ | xyz(8.9256, 5.1750, 35.1717) |
| Luminance | 0.0518 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.25
Indigo Blue
#3A18B1
ΔE00 4.34
Royal
#0C1793
ΔE00 5.83
Cobalt Blue
#030AA7
ΔE00 6.53
True Blue
#010FCC
ΔE00 6.62
Blueberry
#464196
ΔE00 6.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342CA3 #9BA32C
analogous
#2C5FA3 #342CA3 #702CA3
triadic
#342CA3 #A3342C #2CA334
tetradic
#342CA3 #A32C5F #9BA32C #2CA370
square
#342CA3 #A32C5F #9BA32C #2CA370
split-complementary
#342CA3 #A3702C #5FA32C
monochromatic
#151243 #251F73 #342CA3 #4A41CC #7871D9
Accessibility & contrast
On white
10.32
#342CA3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.04
#342CA3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342CA3
10.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342CA3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342CA3 | 1.00 | 10.32 | 2.04 | 10.32 |
| #FFFFFF | 10.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A7
Deuteranopia (green-blind)
#003BA1
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #342ca3; /* rgb */ color: rgb(52, 44, 163); /* oklch */ color: oklch(39.0% 0.182 276.8);
Tailwind
colors: {
custom: {
50: '#7b67bf',
500: '#342ca3',
950: '#000000',
},
}SCSS
$custom: #342ca3; $custom-light: #7b67bf; $custom-dark: #000000;
JSON
{
"hex": "#342ca3",
"rgb": {
"r": 52,
"g": 44,
"b": 163
},
"hsl": {
"h": 244.034,
"s": 57.488,
"l": 40.588
},
"oklch": {
"l": 0.39019,
"c": 0.18239,
"h": 276.8
},
"luminance": 0.05176
}Semantic roles & 50–950 ramp
primary
#342CA3
secondary
#BAC06B
accent
#E147D6
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81