#342DA5#342DA5
#342DA5 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.4% C 0.184 H 276.4°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).
Color values
| HEX | #342DA5 |
|---|---|
| RGB | rgb(52, 45, 165) |
| HSL | hsl(244, 57%, 41%) |
| HSV | hsv(244, 73%, 65%) |
| CMYK | cmyk(68.5%, 72.7%, 0%, 35.3%) |
| CIE-LAB | lab(27.63, 41.02, -63.24) |
| CIE-LCH | lch(27.63, 75.38, 302.97°) |
| OKLab | oklab(39.37% 0.0205 -0.1827) |
| OKLCH | oklch(39.37% 0.184 276.4) |
| XYZ | xyz(9.1439, 5.3226, 36.1355) |
| Luminance | 0.0532 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.98
Indigo Blue
#3A18B1
ΔE00 4.44
Royal
#0C1793
ΔE00 6.12
Blueberry
#464196
ΔE00 6.52
Ocean Blue
#4F42B5
ΔE00 6.53
True Blue
#010FCC
ΔE00 6.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342DA5 #9EA52D
analogous
#2D62A5 #342DA5 #702DA5
triadic
#342DA5 #A5342D #2DA534
tetradic
#342DA5 #A52D62 #9EA52D #2DA570
square
#342DA5 #A52D62 #9EA52D #2DA570
split-complementary
#342DA5 #A5702D #62A52D
monochromatic
#161345 #252075 #342DA5 #4B43CC #7973D9
Accessibility & contrast
On white
10.17
#342DA5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.06
#342DA5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342DA5
10.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342DA5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342DA5 | 1.00 | 10.17 | 2.06 | 10.17 |
| #FFFFFF | 10.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046A9
Deuteranopia (green-blind)
#003CA3
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #342da5; /* rgb */ color: rgb(52, 45, 165); /* oklch */ color: oklch(39.4% 0.184 276.4);
Tailwind
colors: {
custom: {
50: '#7b67c1',
500: '#342da5',
950: '#000000',
},
}SCSS
$custom: #342da5; $custom-light: #7b67c1; $custom-dark: #000000;
JSON
{
"hex": "#342da5",
"rgb": {
"r": 52,
"g": 45,
"b": 165
},
"hsl": {
"h": 243.5,
"s": 57.143,
"l": 41.176
},
"oklch": {
"l": 0.39369,
"c": 0.18384,
"h": 276.4
},
"luminance": 0.05323
}Semantic roles & 50–950 ramp
primary
#342DA5
secondary
#BCC16D
accent
#E047D7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81