#342BA0#342BA0
#342BA0 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.6% C 0.180 H 277.3°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).
Color values
| HEX | #342BA0 |
|---|---|
| RGB | rgb(52, 43, 160) |
| HSL | hsl(245, 58%, 40%) |
| HSV | hsv(245, 73%, 63%) |
| CMYK | cmyk(67.5%, 73.1%, 0%, 37.3%) |
| CIE-LAB | lab(26.72, 40.53, -61.71) |
| CIE-LCH | lch(26.72, 73.83, 303.30°) |
| OKLab | oklab(38.57% 0.0227 -0.1782) |
| OKLCH | oklch(38.57% 0.18 277.3) |
| XYZ | xyz(8.6232, 4.9951, 33.7606) |
| Luminance | 0.0500 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.36
Sapphire (survey)
#2138AB
ΔE00 4.57
Royal
#0C1793
ΔE00 5.51
Cobalt Blue
#030AA7
ΔE00 6.36
Ultramarine
#2000B1
ΔE00 6.62
Blueberry
#464196
ΔE00 6.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342BA0 #97A02B
analogous
#2B5DA0 #342BA0 #6E2BA0
triadic
#342BA0 #A0342B #2BA034
tetradic
#342BA0 #A02B5D #97A02B #2BA06E
square
#342BA0 #A02B5D #97A02B #2BA06E
split-complementary
#342BA0 #A06E2B #5DA02B
monochromatic
#151140 #241E70 #342BA0 #483DCB #766ED8
Accessibility & contrast
On white
10.50
#342BA0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.00
#342BA0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342BA0
10.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342BA0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342BA0 | 1.00 | 10.50 | 2.00 | 10.50 |
| #FFFFFF | 10.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044A3
Deuteranopia (green-blind)
#003A9E
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #342ba0; /* rgb */ color: rgb(52, 43, 160); /* oklch */ color: oklch(38.6% 0.180 277.3);
Tailwind
colors: {
custom: {
50: '#7b66bd',
500: '#342ba0',
950: '#000000',
},
}SCSS
$custom: #342ba0; $custom-light: #7b66bd; $custom-dark: #000000;
JSON
{
"hex": "#342ba0",
"rgb": {
"r": 52,
"g": 43,
"b": 160
},
"hsl": {
"h": 244.615,
"s": 57.635,
"l": 39.804
},
"oklch": {
"l": 0.38568,
"c": 0.17968,
"h": 277.3
},
"luminance": 0.04996
}Semantic roles & 50–950 ramp
primary
#342BA0
secondary
#B8BF68
accent
#E147D5
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81