#342C9E#342C9E
#342C9E is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.5% C 0.176 H 277.3°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).
Color values
| HEX | #342C9E |
|---|---|
| RGB | rgb(52, 44, 158) |
| HSL | hsl(244, 56%, 40%) |
| HSV | hsv(244, 72%, 62%) |
| CMYK | cmyk(67.1%, 72.2%, 0%, 38%) |
| CIE-LAB | lab(26.73, 39.28, -60.47) |
| CIE-LCH | lch(26.73, 72.11, 303.01°) |
| OKLab | oklab(38.52% 0.0224 -0.1746) |
| OKLCH | oklch(38.52% 0.176 277.3) |
| XYZ | xyz(8.4864, 4.9993, 32.8589) |
| Luminance | 0.0500 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.44
Indigo Blue
#3A18B1
ΔE00 4.75
Royal
#0C1793
ΔE00 5.62
Blueberry
#464196
ΔE00 6.42
Darkslateblue
#483D8B
ΔE00 6.62
Cobalt Blue
#030AA7
ΔE00 6.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342C9E #969E2C
analogous
#2C5D9E #342C9E #6D2C9E
triadic
#342C9E #9E342C #2C9E34
tetradic
#342C9E #9E2C5D #969E2C #2C9E6D
square
#342C9E #9E2C5D #969E2C #2C9E6D
split-complementary
#342C9E #9E6D2C #5D9E2C
monochromatic
#14113E #241F6E #342C9E #483EC9 #756ED7
Accessibility & contrast
On white
10.50
#342C9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.00
#342C9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342C9E
10.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342C9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342C9E | 1.00 | 10.50 | 2.00 | 10.50 |
| #FFFFFF | 10.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#003A9C
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #342c9e; /* rgb */ color: rgb(52, 44, 158); /* oklch */ color: oklch(38.5% 0.176 277.3);
Tailwind
colors: {
custom: {
50: '#7a67bc',
500: '#342c9e',
950: '#000000',
},
}SCSS
$custom: #342c9e; $custom-light: #7a67bc; $custom-dark: #000000;
JSON
{
"hex": "#342c9e",
"rgb": {
"r": 52,
"g": 44,
"b": 158
},
"hsl": {
"h": 244.211,
"s": 56.436,
"l": 39.608
},
"oklch": {
"l": 0.38517,
"c": 0.17606,
"h": 277.3
},
"luminance": 0.05
}Semantic roles & 50–950 ramp
primary
#342C9E
secondary
#B8BE68
accent
#E048D5
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0612
muted
#7C7A81