#342C9B#342C9B
#342C9B is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.2% C 0.172 H 277.6°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).
Color values
| HEX | #342C9B |
|---|---|
| RGB | rgb(52, 44, 155) |
| HSL | hsl(244, 56%, 39%) |
| HSV | hsv(244, 72%, 61%) |
| CMYK | cmyk(66.5%, 71.6%, 0%, 39.2%) |
| CIE-LAB | lab(26.44, 38.28, -59.12) |
| CIE-LCH | lch(26.44, 70.44, 302.92°) |
| OKLab | oklab(38.22% 0.0229 -0.1707) |
| OKLCH | oklch(38.22% 0.172 277.6) |
| XYZ | xyz(8.2313, 4.8973, 31.5155) |
| Luminance | 0.0490 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.61
Indigo Blue
#3A18B1
ΔE00 5.03
Royal
#0C1793
ΔE00 5.53
Blueberry
#464196
ΔE00 6.32
Darkslateblue
#483D8B
ΔE00 6.40
Cobalt Blue
#030AA7
ΔE00 6.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342C9B #939B2C
analogous
#2C5C9B #342C9B #6C2C9B
triadic
#342C9B #9B342C #2C9B34
tetradic
#342C9B #9B2C5C #939B2C #2C9B6C
square
#342C9B #9B2C5C #939B2C #2C9B6C
split-complementary
#342C9B #9B6C2C #5C9B2C
monochromatic
#14113C #241E6B #342C9B #463CC8 #746CD5
Accessibility & contrast
On white
10.61
#342C9B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.98
#342C9B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342C9B
10.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342C9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342C9B | 1.00 | 10.61 | 1.98 | 10.61 |
| #FFFFFF | 10.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#003A99
Tritanopia (blue-blind)
#004A60
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #342c9b; /* rgb */ color: rgb(52, 44, 155); /* oklch */ color: oklch(38.2% 0.172 277.6);
Tailwind
colors: {
custom: {
50: '#7966ba',
500: '#342c9b',
950: '#000000',
},
}SCSS
$custom: #342c9b; $custom-light: #7966ba; $custom-dark: #000000;
JSON
{
"hex": "#342c9b",
"rgb": {
"r": 52,
"g": 44,
"b": 155
},
"hsl": {
"h": 244.324,
"s": 55.779,
"l": 39.02
},
"oklch": {
"l": 0.38219,
"c": 0.17222,
"h": 277.6
},
"luminance": 0.04898
}Semantic roles & 50–950 ramp
primary
#342C9B
secondary
#B6BC67
accent
#DF49D4
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81