#342C9A#342C9A
#342C9A is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.1% C 0.171 H 277.8°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).
Color values
| HEX | #342C9A |
|---|---|
| RGB | rgb(52, 44, 154) |
| HSL | hsl(244, 56%, 39%) |
| HSV | hsv(244, 71%, 60%) |
| CMYK | cmyk(66.2%, 71.4%, 0%, 39.6%) |
| CIE-LAB | lab(26.34, 37.95, -58.67) |
| CIE-LCH | lch(26.34, 69.88, 302.89°) |
| OKLab | oklab(38.12% 0.0231 -0.1694) |
| OKLCH | oklch(38.12% 0.171 277.8) |
| XYZ | xyz(8.1477, 4.8638, 31.0750) |
| Luminance | 0.0486 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.67
Indigo Blue
#3A18B1
ΔE00 5.13
Royal
#0C1793
ΔE00 5.52
Blueberry
#464196
ΔE00 6.29
Darkslateblue
#483D8B
ΔE00 6.33
Cobalt Blue
#030AA7
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342C9A #929A2C
analogous
#2C5B9A #342C9A #6B2C9A
triadic
#342C9A #9A342C #2C9A34
tetradic
#342C9A #9A2C5B #929A2C #2C9A6B
square
#342C9A #9A2C5B #929A2C #2C9A6B
split-complementary
#342C9A #9A6B2C #5B9A2C
monochromatic
#14113B #241E6A #342C9A #463CC7 #736CD5
Accessibility & contrast
On white
10.64
#342C9A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.97
#342C9A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342C9A
10.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342C9A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342C9A | 1.00 | 10.64 | 1.97 | 10.64 |
| #FFFFFF | 10.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00439D
Deuteranopia (green-blind)
#003A98
Tritanopia (blue-blind)
#004A60
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #342c9a; /* rgb */ color: rgb(52, 44, 154); /* oklch */ color: oklch(38.1% 0.171 277.8);
Tailwind
colors: {
custom: {
50: '#7966b9',
500: '#342c9a',
950: '#000000',
},
}SCSS
$custom: #342c9a; $custom-light: #7966b9; $custom-dark: #000000;
JSON
{
"hex": "#342c9a",
"rgb": {
"r": 52,
"g": 44,
"b": 154
},
"hsl": {
"h": 244.364,
"s": 55.556,
"l": 38.824
},
"oklch": {
"l": 0.3812,
"c": 0.17093,
"h": 277.8
},
"luminance": 0.04865
}Semantic roles & 50–950 ramp
primary
#342C9A
secondary
#B5BC66
accent
#DF49D4
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81