#342CA8#342CA8
#342CA8 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.5% C 0.189 H 276.2°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).
Color values
| HEX | #342CA8 |
|---|---|
| RGB | rgb(52, 44, 168) |
| HSL | hsl(244, 58%, 42%) |
| HSV | hsv(244, 74%, 66%) |
| CMYK | cmyk(69%, 73.8%, 0%, 34.1%) |
| CIE-LAB | lab(27.73, 42.59, -64.89) |
| CIE-LCH | lch(27.73, 77.62, 303.28°) |
| OKLab | oklab(39.53% 0.0205 -0.1875) |
| OKLCH | oklch(39.53% 0.189 276.2) |
| XYZ | xyz(9.3824, 5.3577, 37.5779) |
| Luminance | 0.0536 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.04
Sapphire (survey)
#2138AB
ΔE00 4.16
True Blue
#010FCC
ΔE00 6.12
Royal
#0C1793
ΔE00 6.14
Cobalt Blue
#030AA7
ΔE00 6.51
Ultramarine
#2000B1
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342CA8 #A0A82C
analogous
#2C62A8 #342CA8 #722CA8
triadic
#342CA8 #A8342C #2CA834
tetradic
#342CA8 #A82C62 #A0A82C #2CA872
square
#342CA8 #A82C62 #A0A82C #2CA872
split-complementary
#342CA8 #A8722C #62A82C
monochromatic
#161347 #251F78 #342CA8 #4C43CE #7A74DB
Accessibility & contrast
On white
10.14
#342CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.07
#342CA8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342CA8
10.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342CA8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342CA8 | 1.00 | 10.14 | 2.07 | 10.14 |
| #FFFFFF | 10.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047AC
Deuteranopia (green-blind)
#003CA6
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #342ca8; /* rgb */ color: rgb(52, 44, 168); /* oklch */ color: oklch(39.5% 0.189 276.2);
Tailwind
colors: {
custom: {
50: '#7c67c3',
500: '#342ca8',
950: '#000000',
},
}SCSS
$custom: #342ca8; $custom-light: #7c67c3; $custom-dark: #000000;
JSON
{
"hex": "#342ca8",
"rgb": {
"r": 52,
"g": 44,
"b": 168
},
"hsl": {
"h": 243.871,
"s": 58.491,
"l": 41.569
},
"oklch": {
"l": 0.39528,
"c": 0.18864,
"h": 276.2
},
"luminance": 0.05359
}Semantic roles & 50–950 ramp
primary
#342CA8
secondary
#BDC26E
accent
#E246D8
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82