#342BAB#342BAB
#342BAB is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.7% C 0.193 H 276.1°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).
Color values
| HEX | #342BAB |
|---|---|
| RGB | rgb(52, 43, 171) |
| HSL | hsl(244, 60%, 42%) |
| HSV | hsv(244, 75%, 67%) |
| CMYK | cmyk(69.6%, 74.9%, 0%, 32.9%) |
| CIE-LAB | lab(27.84, 44.13, -66.52) |
| CIE-LCH | lch(27.84, 79.82, 303.56°) |
| OKLab | oklab(39.7% 0.0205 -0.1923) |
| OKLCH | oklch(39.7% 0.193 276.1) |
| XYZ | xyz(9.6283, 5.3972, 39.0545) |
| Luminance | 0.0540 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.69
Sapphire (survey)
#2138AB
ΔE00 4.38
True Blue
#010FCC
ΔE00 5.70
Royal
#0C1793
ΔE00 6.20
Ultramarine
#2000B1
ΔE00 6.27
Cobalt Blue
#030AA7
ΔE00 6.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342BAB #A2AB2B
analogous
#2B62AB #342BAB #742BAB
triadic
#342BAB #AB342B #2BAB34
tetradic
#342BAB #AB2B62 #A2AB2B #2BAB74
square
#342BAB #AB2B62 #A2AB2B #2BAB74
split-complementary
#342BAB #AB742B #62AB2B
monochromatic
#161249 #251F7A #342BAB #4D43D0 #7C74DC
Accessibility & contrast
On white
10.10
#342BAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.08
#342BAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342BAB
10.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342BAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342BAB | 1.00 | 10.10 | 2.08 | 10.10 |
| #FFFFFF | 10.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047AF
Deuteranopia (green-blind)
#003CA9
Tritanopia (blue-blind)
#005069
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #342bab; /* rgb */ color: rgb(52, 43, 171); /* oklch */ color: oklch(39.7% 0.193 276.1);
Tailwind
colors: {
custom: {
50: '#7d66c5',
500: '#342bab',
950: '#000000',
},
}SCSS
$custom: #342bab; $custom-light: #7d66c5; $custom-dark: #000000;
JSON
{
"hex": "#342bab",
"rgb": {
"r": 52,
"g": 43,
"b": 171
},
"hsl": {
"h": 244.219,
"s": 59.813,
"l": 41.961
},
"oklch": {
"l": 0.39696,
"c": 0.19336,
"h": 276.1
},
"luminance": 0.05398
}Semantic roles & 50–950 ramp
primary
#342BAB
secondary
#BEC46E
accent
#E345D8
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82