#342AA4#342AA4
#342AA4 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.8% C 0.186 H 277.0°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).
Color values
| HEX | #342AA4 |
|---|---|
| RGB | rgb(52, 42, 164) |
| HSL | hsl(245, 59%, 40%) |
| HSV | hsv(245, 74%, 64%) |
| CMYK | cmyk(68.3%, 74.4%, 0%, 35.7%) |
| CIE-LAB | lab(26.92, 42.41, -63.81) |
| CIE-LCH | lch(26.92, 76.62, 303.61°) |
| OKLab | oklab(38.83% 0.0225 -0.1844) |
| OKLCH | oklch(38.83% 0.186 277) |
| XYZ | xyz(8.9428, 5.0655, 35.6212) |
| Luminance | 0.0507 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.84
Sapphire (survey)
#2138AB
ΔE00 4.66
Royal
#0C1793
ΔE00 5.55
Cobalt Blue
#030AA7
ΔE00 6.09
Ultramarine
#2000B1
ΔE00 6.22
True Blue
#010FCC
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342AA4 #9AA42A
analogous
#2A5DA4 #342AA4 #712AA4
triadic
#342AA4 #A4342A #2AA434
tetradic
#342AA4 #A42A5D #9AA42A #2AA471
square
#342AA4 #A42A5D #9AA42A #2AA471
split-complementary
#342AA4 #A4712A #5DA42A
monochromatic
#151143 #251E73 #342AA4 #493ECD #776EDA
Accessibility & contrast
On white
10.43
#342AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.01
#342AA4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342AA4
10.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342AA4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342AA4 | 1.00 | 10.43 | 2.01 | 10.43 |
| #FFFFFF | 10.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A8
Deuteranopia (green-blind)
#003AA2
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #342aa4; /* rgb */ color: rgb(52, 42, 164); /* oklch */ color: oklch(38.8% 0.186 277.0);
Tailwind
colors: {
custom: {
50: '#7c66c0',
500: '#342aa4',
950: '#000000',
},
}SCSS
$custom: #342aa4; $custom-light: #7c66c0; $custom-dark: #000000;
JSON
{
"hex": "#342aa4",
"rgb": {
"r": 52,
"g": 42,
"b": 164
},
"hsl": {
"h": 244.918,
"s": 59.223,
"l": 40.392
},
"oklch": {
"l": 0.38831,
"c": 0.18572,
"h": 277
},
"luminance": 0.05066
}Semantic roles & 50–950 ramp
primary
#342AA4
secondary
#BAC169
accent
#E245D6
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81