#342BA2#342BA2
#342BA2 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.8% C 0.182 H 277.0°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).
Color values
| HEX | #342BA2 |
|---|---|
| RGB | rgb(52, 43, 162) |
| HSL | hsl(245, 58%, 40%) |
| HSV | hsv(245, 73%, 64%) |
| CMYK | cmyk(67.9%, 73.5%, 0%, 36.5%) |
| CIE-LAB | lab(26.92, 41.19, -62.60) |
| CIE-LCH | lch(26.92, 74.93, 303.34°) |
| OKLab | oklab(38.77% 0.0223 -0.1808) |
| OKLCH | oklch(38.77% 0.182 277) |
| XYZ | xyz(8.7995, 5.0657, 34.6895) |
| Luminance | 0.0507 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.20
Sapphire (survey)
#2138AB
ΔE00 4.49
Royal
#0C1793
ΔE00 5.60
Cobalt Blue
#030AA7
ΔE00 6.32
Ultramarine
#2000B1
ΔE00 6.53
True Blue
#010FCC
ΔE00 6.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342BA2 #99A22B
analogous
#2B5DA2 #342BA2 #702BA2
triadic
#342BA2 #A2342B #2BA234
tetradic
#342BA2 #A22B5D #99A22B #2BA270
square
#342BA2 #A22B5D #99A22B #2BA270
split-complementary
#342BA2 #A2702B #5DA22B
monochromatic
#151141 #241E72 #342BA2 #493ECC #776FD9
Accessibility & contrast
On white
10.43
#342BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.01
#342BA2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342BA2
10.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342BA2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342BA2 | 1.00 | 10.43 | 2.01 | 10.43 |
| #FFFFFF | 10.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A6
Deuteranopia (green-blind)
#003AA0
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #342ba2; /* rgb */ color: rgb(52, 43, 162); /* oklch */ color: oklch(38.8% 0.182 277.0);
Tailwind
colors: {
custom: {
50: '#7b66bf',
500: '#342ba2',
950: '#000000',
},
}SCSS
$custom: #342ba2; $custom-light: #7b66bf; $custom-dark: #000000;
JSON
{
"hex": "#342ba2",
"rgb": {
"r": 52,
"g": 43,
"b": 162
},
"hsl": {
"h": 244.538,
"s": 58.049,
"l": 40.196
},
"oklch": {
"l": 0.38771,
"c": 0.18219,
"h": 277
},
"luminance": 0.05066
}Semantic roles & 50–950 ramp
primary
#342BA2
secondary
#B9C069
accent
#E147D6
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81