#342AA5#342AA5
#342AA5 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.9% C 0.187 H 276.9°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).
Color values
| HEX | #342AA5 |
|---|---|
| RGB | rgb(52, 42, 165) |
| HSL | hsl(245, 59%, 41%) |
| HSV | hsv(245, 75%, 65%) |
| CMYK | cmyk(68.5%, 74.5%, 0%, 35.3%) |
| CIE-LAB | lab(27.02, 42.74, -64.25) |
| CIE-LCH | lch(27.02, 77.16, 303.63°) |
| OKLab | oklab(38.93% 0.0223 -0.1856) |
| OKLCH | oklch(38.93% 0.187 276.9) |
| XYZ | xyz(9.0335, 5.1018, 36.0987) |
| Luminance | 0.0510 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.77
Sapphire (survey)
#2138AB
ΔE00 4.64
Royal
#0C1793
ΔE00 5.61
Cobalt Blue
#030AA7
ΔE00 6.08
True Blue
#010FCC
ΔE00 6.12
Ultramarine
#2000B1
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342AA5 #9BA52A
analogous
#2A5DA5 #342AA5 #712AA5
triadic
#342AA5 #A5342A #2AA534
tetradic
#342AA5 #A52A5D #9BA52A #2AA571
square
#342AA5 #A52A5D #9BA52A #2AA571
split-complementary
#342AA5 #A5712A #5DA52A
monochromatic
#151143 #251E74 #342AA5 #4A3ECE #786FDA
Accessibility & contrast
On white
10.39
#342AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.02
#342AA5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342AA5
10.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342AA5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342AA5 | 1.00 | 10.39 | 2.02 | 10.39 |
| #FFFFFF | 10.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A9
Deuteranopia (green-blind)
#003BA3
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #342aa5; /* rgb */ color: rgb(52, 42, 165); /* oklch */ color: oklch(38.9% 0.187 276.9);
Tailwind
colors: {
custom: {
50: '#7c66c1',
500: '#342aa5',
950: '#000000',
},
}SCSS
$custom: #342aa5; $custom-light: #7c66c1; $custom-dark: #000000;
JSON
{
"hex": "#342aa5",
"rgb": {
"r": 52,
"g": 42,
"b": 165
},
"hsl": {
"h": 244.878,
"s": 59.42,
"l": 40.588
},
"oklch": {
"l": 0.38934,
"c": 0.18696,
"h": 276.9
},
"luminance": 0.05103
}Semantic roles & 50–950 ramp
primary
#342AA5
secondary
#BAC169
accent
#E345D6
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81