#342E9D#342E9D
#342E9D is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.7% C 0.173 H 277.0°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).
Color values
| HEX | #342E9D |
|---|---|
| RGB | rgb(52, 46, 157) |
| HSL | hsl(243, 55%, 40%) |
| HSV | hsv(243, 71%, 62%) |
| CMYK | cmyk(66.9%, 70.7%, 0%, 38.4%) |
| CIE-LAB | lab(27.07, 37.76, -59.31) |
| CIE-LCH | lch(27.07, 70.31, 302.48°) |
| OKLab | oklab(38.73% 0.0212 -0.1713) |
| OKLCH | oklch(38.73% 0.173 277) |
| XYZ | xyz(8.4770, 5.1177, 32.4328) |
| Luminance | 0.0512 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.08
Indigo Blue
#3A18B1
ΔE00 5.28
Blueberry
#464196
ΔE00 5.93
Royal
#0C1793
ΔE00 5.99
Darkslateblue
#483D8B
ΔE00 6.20
Ocean Blue
#4F42B5
ΔE00 6.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342E9D #979D2E
analogous
#2E609D #342E9D #6B2E9D
triadic
#342E9D #9D342E #2E9D34
tetradic
#342E9D #9D2E60 #979D2E #2E9D6B
square
#342E9D #9D2E60 #979D2E #2E9D6B
split-complementary
#342E9D #9D6B2E #609D2E
monochromatic
#15123E #24206E #342E9D #4841C7 #7670D5
Accessibility & contrast
On white
10.38
#342E9D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.02
#342E9D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342E9D
10.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342E9D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342E9D | 1.00 | 10.38 | 2.02 | 10.38 |
| #FFFFFF | 10.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#003B9B
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #342e9d; /* rgb */ color: rgb(52, 46, 157); /* oklch */ color: oklch(38.7% 0.173 277.0);
Tailwind
colors: {
custom: {
50: '#7a68bb',
500: '#342e9d',
950: '#000000',
},
}SCSS
$custom: #342e9d; $custom-light: #7a68bb; $custom-dark: #000000;
JSON
{
"hex": "#342e9d",
"rgb": {
"r": 52,
"g": 46,
"b": 157
},
"hsl": {
"h": 243.243,
"s": 54.68,
"l": 39.804
},
"oklch": {
"l": 0.38727,
"c": 0.17255,
"h": 277
},
"luminance": 0.05118
}Semantic roles & 50–950 ramp
primary
#342E9D
secondary
#B8BD6A
accent
#DE4AD6
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0612
muted
#7C7A81