#342BA6#342BA6
#342BA6 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.2% C 0.187 H 276.6°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).
Color values
| HEX | #342BA6 |
|---|---|
| RGB | rgb(52, 43, 166) |
| HSL | hsl(244, 59%, 41%) |
| HSV | hsv(244, 74%, 65%) |
| CMYK | cmyk(68.7%, 74.1%, 0%, 34.9%) |
| CIE-LAB | lab(27.33, 42.50, -64.35) |
| CIE-LCH | lch(27.33, 77.12, 303.44°) |
| OKLab | oklab(39.18% 0.0215 -0.1859) |
| OKLCH | oklch(39.18% 0.187 276.6) |
| XYZ | xyz(9.1607, 5.2102, 36.5919) |
| Luminance | 0.0521 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.93
Sapphire (survey)
#2138AB
ΔE00 4.40
Royal
#0C1793
ΔE00 5.84
True Blue
#010FCC
ΔE00 6.16
Cobalt Blue
#030AA7
ΔE00 6.29
Ultramarine
#2000B1
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342BA6 #9DA62B
analogous
#2B5FA6 #342BA6 #712BA6
triadic
#342BA6 #A6342B #2BA634
tetradic
#342BA6 #A62B5F #9DA62B #2BA671
square
#342BA6 #A62B5F #9DA62B #2BA671
split-complementary
#342BA6 #A6712B #5FA62B
monochromatic
#161245 #251E75 #342BA6 #4B41CE #7971DA
Accessibility & contrast
On white
10.28
#342BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.04
#342BA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342BA6
10.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342BA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342BA6 | 1.00 | 10.28 | 2.04 | 10.28 |
| #FFFFFF | 10.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#003BA4
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #342ba6; /* rgb */ color: rgb(52, 43, 166); /* oklch */ color: oklch(39.2% 0.187 276.6);
Tailwind
colors: {
custom: {
50: '#7c66c2',
500: '#342ba6',
950: '#000000',
},
}SCSS
$custom: #342ba6; $custom-light: #7c66c2; $custom-dark: #000000;
JSON
{
"hex": "#342ba6",
"rgb": {
"r": 52,
"g": 43,
"b": 166
},
"hsl": {
"h": 244.39,
"s": 58.852,
"l": 40.98
},
"oklch": {
"l": 0.3918,
"c": 0.18718,
"h": 276.6
},
"luminance": 0.05211
}Semantic roles & 50–950 ramp
primary
#342BA6
secondary
#BBC16B
accent
#E246D7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81