#342C9D#342C9D
#342C9D is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.4% C 0.175 H 277.4°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).
Color values
| HEX | #342C9D |
|---|---|
| RGB | rgb(52, 44, 157) |
| HSL | hsl(244, 56%, 39%) |
| HSV | hsv(244, 72%, 62%) |
| CMYK | cmyk(66.9%, 72%, 0%, 38.4%) |
| CIE-LAB | lab(26.63, 38.95, -60.03) |
| CIE-LCH | lch(26.63, 71.56, 302.98°) |
| OKLab | oklab(38.42% 0.0226 -0.1733) |
| OKLCH | oklch(38.42% 0.175 277.4) |
| XYZ | xyz(8.4007, 4.9650, 32.4074) |
| Luminance | 0.0497 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.49
Indigo Blue
#3A18B1
ΔE00 4.84
Royal
#0C1793
ΔE00 5.58
Blueberry
#464196
ΔE00 6.39
Darkslateblue
#483D8B
ΔE00 6.55
Cobalt Blue
#030AA7
ΔE00 6.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342C9D #959D2C
analogous
#2C5D9D #342C9D #6D2C9D
triadic
#342C9D #9D342C #2C9D34
tetradic
#342C9D #9D2C5D #959D2C #2C9D6D
square
#342C9D #9D2C5D #959D2C #2C9D6D
split-complementary
#342C9D #9D6D2C #5D9D2C
monochromatic
#14113D #241F6D #342C9D #473DC9 #756DD6
Accessibility & contrast
On white
10.54
#342C9D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.99
#342C9D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342C9D
10.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342C9D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342C9D | 1.00 | 10.54 | 1.99 | 10.54 |
| #FFFFFF | 10.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#003A9B
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #342c9d; /* rgb */ color: rgb(52, 44, 157); /* oklch */ color: oklch(38.4% 0.175 277.4);
Tailwind
colors: {
custom: {
50: '#7a66bb',
500: '#342c9d',
950: '#000000',
},
}SCSS
$custom: #342c9d; $custom-light: #7a66bb; $custom-dark: #000000;
JSON
{
"hex": "#342c9d",
"rgb": {
"r": 52,
"g": 44,
"b": 157
},
"hsl": {
"h": 244.248,
"s": 56.219,
"l": 39.412
},
"oklch": {
"l": 0.38417,
"c": 0.17478,
"h": 277.4
},
"luminance": 0.04966
}Semantic roles & 50–950 ramp
primary
#342C9D
secondary
#B7BD68
accent
#E048D5
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0612
muted
#7C7A81