#342CA1#342CA1
#342CA1 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.8% C 0.180 H 277.0°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).
Color values
| HEX | #342CA1 |
|---|---|
| RGB | rgb(52, 44, 161) |
| HSL | hsl(244, 57%, 40%) |
| HSV | hsv(244, 73%, 63%) |
| CMYK | cmyk(67.7%, 72.7%, 0%, 36.9%) |
| CIE-LAB | lab(27.03, 40.28, -61.81) |
| CIE-LCH | lch(27.03, 73.78, 303.09°) |
| OKLab | oklab(38.82% 0.0219 -0.1785) |
| OKLCH | oklch(38.82% 0.18 277) |
| XYZ | xyz(8.7478, 5.1039, 34.2355) |
| Luminance | 0.0510 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.31
Indigo Blue
#3A18B1
ΔE00 4.49
Royal
#0C1793
ΔE00 5.74
Blueberry
#464196
ΔE00 6.54
Cobalt Blue
#030AA7
ΔE00 6.56
Ultramarine
#2000B1
ΔE00 6.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342CA1 #99A12C
analogous
#2C5EA1 #342CA1 #6F2CA1
triadic
#342CA1 #A1342C #2CA134
tetradic
#342CA1 #A12C5E #99A12C #2CA16F
square
#342CA1 #A12C5E #99A12C #2CA16F
split-complementary
#342CA1 #A16F2C #5EA12C
monochromatic
#151241 #241F71 #342CA1 #4940CB #7770D8
Accessibility & contrast
On white
10.39
#342CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.02
#342CA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342CA1
10.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342CA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342CA1 | 1.00 | 10.39 | 2.02 | 10.39 |
| #FFFFFF | 10.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A4
Deuteranopia (green-blind)
#003B9F
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #342ca1; /* rgb */ color: rgb(52, 44, 161); /* oklch */ color: oklch(38.8% 0.180 277.0);
Tailwind
colors: {
custom: {
50: '#7b67be',
500: '#342ca1',
950: '#000000',
},
}SCSS
$custom: #342ca1; $custom-light: #7b67be; $custom-dark: #000000;
JSON
{
"hex": "#342ca1",
"rgb": {
"r": 52,
"g": 44,
"b": 161
},
"hsl": {
"h": 244.103,
"s": 57.073,
"l": 40.196
},
"oklch": {
"l": 0.38817,
"c": 0.17987,
"h": 277
},
"luminance": 0.05105
}Semantic roles & 50–950 ramp
primary
#342CA1
secondary
#B9BF6A
accent
#E047D6
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81