#342C9C#342C9C
#342C9C is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.3% C 0.173 H 277.5°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).
Color values
| HEX | #342C9C |
|---|---|
| RGB | rgb(52, 44, 156) |
| HSL | hsl(244, 56%, 39%) |
| HSV | hsv(244, 72%, 61%) |
| CMYK | cmyk(66.7%, 71.8%, 0%, 38.8%) |
| CIE-LAB | lab(26.54, 38.62, -59.58) |
| CIE-LCH | lch(26.54, 71.00, 302.95°) |
| OKLab | oklab(38.32% 0.0228 -0.172) |
| OKLCH | oklch(38.32% 0.174 277.5) |
| XYZ | xyz(8.3157, 4.9310, 31.9596) |
| Luminance | 0.0493 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.55
Indigo Blue
#3A18B1
ΔE00 4.93
Royal
#0C1793
ΔE00 5.56
Blueberry
#464196
ΔE00 6.35
Darkslateblue
#483D8B
ΔE00 6.48
Cobalt Blue
#030AA7
ΔE00 6.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342C9C #949C2C
analogous
#2C5C9C #342C9C #6C2C9C
triadic
#342C9C #9C342C #2C9C34
tetradic
#342C9C #9C2C5C #949C2C #2C9C6C
square
#342C9C #9C2C5C #949C2C #2C9C6C
split-complementary
#342C9C #9C6C2C #5C9C2C
monochromatic
#14113D #241F6C #342C9C #473DC8 #746DD6
Accessibility & contrast
On white
10.57
#342C9C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.99
#342C9C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342C9C
10.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342C9C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342C9C | 1.00 | 10.57 | 1.99 | 10.57 |
| #FFFFFF | 10.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00439F
Deuteranopia (green-blind)
#003A9A
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #342c9c; /* rgb */ color: rgb(52, 44, 156); /* oklch */ color: oklch(38.3% 0.173 277.5);
Tailwind
colors: {
custom: {
50: '#7a66ba',
500: '#342c9c',
950: '#000000',
},
}SCSS
$custom: #342c9c; $custom-light: #7a66ba; $custom-dark: #000000;
JSON
{
"hex": "#342c9c",
"rgb": {
"r": 52,
"g": 44,
"b": 156
},
"hsl": {
"h": 244.286,
"s": 56,
"l": 39.216
},
"oklch": {
"l": 0.38318,
"c": 0.1735,
"h": 277.5
},
"luminance": 0.04932
}Semantic roles & 50–950 ramp
primary
#342C9C
secondary
#B7BD67
accent
#DF49D5
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0612
muted
#7C7A81