#342D9C#342D9C
#342D9C is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.5% C 0.172 H 277.3°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).
Color values
| HEX | #342D9C |
|---|---|
| RGB | rgb(52, 45, 156) |
| HSL | hsl(244, 55%, 39%) |
| HSV | hsv(244, 71%, 61%) |
| CMYK | cmyk(66.7%, 71.2%, 0%, 38.8%) |
| CIE-LAB | lab(26.75, 38.02, -59.22) |
| CIE-LCH | lch(26.75, 70.38, 302.70°) |
| OKLab | oklab(38.47% 0.0221 -0.171) |
| OKLCH | oklch(38.47% 0.172 277.3) |
| XYZ | xyz(8.3534, 5.0064, 31.9722) |
| Luminance | 0.0501 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.34
Indigo Blue
#3A18B1
ΔE00 5.15
Royal
#0C1793
ΔE00 5.76
Blueberry
#464196
ΔE00 6.12
Darkslateblue
#483D8B
ΔE00 6.30
Cobalt Blue
#030AA7
ΔE00 6.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342D9C #959C2D
analogous
#2D5E9C #342D9C #6C2D9C
triadic
#342D9C #9C342D #2D9C34
tetradic
#342D9C #9C2D5E #959C2D #2D9C6C
square
#342D9C #9C2D5E #959C2D #2D9C6C
split-complementary
#342D9C #9C6C2D #5E9C2D
monochromatic
#14123D #241F6D #342D9C #473FC8 #756ED5
Accessibility & contrast
On white
10.49
#342D9C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.00
#342D9C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342D9C
10.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342D9C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342D9C | 1.00 | 10.49 | 2.00 | 10.49 |
| #FFFFFF | 10.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#003B9A
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #342d9c; /* rgb */ color: rgb(52, 45, 156); /* oklch */ color: oklch(38.5% 0.172 277.3);
Tailwind
colors: {
custom: {
50: '#7a67ba',
500: '#342d9c',
950: '#000000',
},
}SCSS
$custom: #342d9c; $custom-light: #7a67ba; $custom-dark: #000000;
JSON
{
"hex": "#342d9c",
"rgb": {
"r": 52,
"g": 45,
"b": 156
},
"hsl": {
"h": 243.784,
"s": 55.224,
"l": 39.412
},
"oklch": {
"l": 0.38472,
"c": 0.17239,
"h": 277.3
},
"luminance": 0.05007
}Semantic roles & 50–950 ramp
primary
#342D9C
secondary
#B7BC68
accent
#DF49D5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81