#342BA3#342BA3
#342BA3 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.9% C 0.183 H 276.9°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).
Color values
| HEX | #342BA3 |
|---|---|
| RGB | rgb(52, 43, 163) |
| HSL | hsl(245, 58%, 40%) |
| HSV | hsv(245, 74%, 64%) |
| CMYK | cmyk(68.1%, 73.6%, 0%, 36.1%) |
| CIE-LAB | lab(27.02, 41.52, -63.04) |
| CIE-LCH | lch(27.02, 75.48, 303.37°) |
| OKLab | oklab(38.87% 0.0221 -0.1821) |
| OKLCH | oklch(38.87% 0.183 276.9) |
| XYZ | xyz(8.8888, 5.1014, 35.1595) |
| Luminance | 0.0510 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.12
Sapphire (survey)
#2138AB
ΔE00 4.46
Royal
#0C1793
ΔE00 5.66
Cobalt Blue
#030AA7
ΔE00 6.31
True Blue
#010FCC
ΔE00 6.47
Ultramarine
#2000B1
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342BA3 #9AA32B
analogous
#2B5EA3 #342BA3 #702BA3
triadic
#342BA3 #A3342B #2BA334
tetradic
#342BA3 #A32B5E #9AA32B #2BA370
square
#342BA3 #A32B5E #9AA32B #2BA370
split-complementary
#342BA3 #A3702B #5EA32B
monochromatic
#151142 #251E73 #342BA3 #493FCC #776FD9
Accessibility & contrast
On white
10.39
#342BA3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.02
#342BA3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342BA3
10.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342BA3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342BA3 | 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)
#0045A7
Deuteranopia (green-blind)
#003BA1
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #342ba3; /* rgb */ color: rgb(52, 43, 163); /* oklch */ color: oklch(38.9% 0.183 276.9);
Tailwind
colors: {
custom: {
50: '#7b66bf',
500: '#342ba3',
950: '#000000',
},
}SCSS
$custom: #342ba3; $custom-light: #7b66bf; $custom-dark: #000000;
JSON
{
"hex": "#342ba3",
"rgb": {
"r": 52,
"g": 43,
"b": 163
},
"hsl": {
"h": 244.5,
"s": 58.252,
"l": 40.392
},
"oklch": {
"l": 0.38873,
"c": 0.18345,
"h": 276.9
},
"luminance": 0.05102
}Semantic roles & 50–950 ramp
primary
#342BA3
secondary
#BAC06A
accent
#E146D6
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81