#342B9A#342B9A
#342B9A is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.0% C 0.172 H 278.0°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).
Color values
| HEX | #342B9A |
|---|---|
| RGB | rgb(52, 43, 154) |
| HSL | hsl(245, 56%, 39%) |
| HSV | hsv(245, 72%, 60%) |
| CMYK | cmyk(66.2%, 72.1%, 0%, 39.6%) |
| CIE-LAB | lab(26.13, 38.54, -59.03) |
| CIE-LCH | lch(26.13, 70.49, 303.14°) |
| OKLab | oklab(37.97% 0.0238 -0.1704) |
| OKLCH | oklch(37.97% 0.172 278) |
| XYZ | xyz(8.1109, 4.7902, 31.0628) |
| Luminance | 0.0479 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.88
Indigo Blue
#3A18B1
ΔE00 4.93
Royal
#0C1793
ΔE00 5.32
Darkslateblue
#483D8B
ΔE00 6.52
Blueberry
#464196
ΔE00 6.52
Cobalt Blue
#030AA7
ΔE00 6.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342B9A #919A2B
analogous
#2B599A #342B9A #6B2B9A
triadic
#342B9A #9A342B #2B9A34
tetradic
#342B9A #9A2B59 #919A2B #2B9A6B
square
#342B9A #9A2B59 #919A2B #2B9A6B
split-complementary
#342B9A #9A6B2B #599A2B
monochromatic
#14103A #241E6A #342B9A #463AC8 #736AD5
Accessibility & contrast
On white
10.72
#342B9A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.96
#342B9A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342B9A
10.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342B9A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342B9A | 1.00 | 10.72 | 1.96 | 10.72 |
| #FFFFFF | 10.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00429D
Deuteranopia (green-blind)
#003998
Tritanopia (blue-blind)
#00495F
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #342b9a; /* rgb */ color: rgb(52, 43, 154); /* oklch */ color: oklch(38.0% 0.172 278.0);
Tailwind
colors: {
custom: {
50: '#7966b9',
500: '#342b9a',
950: '#000000',
},
}SCSS
$custom: #342b9a; $custom-light: #7966b9; $custom-dark: #000000;
JSON
{
"hex": "#342b9a",
"rgb": {
"r": 52,
"g": 43,
"b": 154
},
"hsl": {
"h": 244.865,
"s": 56.345,
"l": 38.627
},
"oklch": {
"l": 0.37966,
"c": 0.17205,
"h": 278
},
"luminance": 0.04791
}Semantic roles & 50–950 ramp
primary
#342B9A
secondary
#B5BC65
accent
#E048D3
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81