#342F7E#342F7E
#342F7E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.0% C 0.129 H 280.6°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).
Color values
| HEX | #342F7E |
|---|---|
| RGB | rgb(52, 47, 126) |
| HSL | hsl(244, 46%, 34%) |
| HSV | hsv(244, 63%, 49%) |
| CMYK | cmyk(58.7%, 62.7%, 0%, 50.6%) |
| CIE-LAB | lab(24.54, 26.50, -44.23) |
| CIE-LCH | lch(24.54, 51.56, 300.93°) |
| OKLab | oklab(36.04% 0.0237 -0.127) |
| OKLCH | oklch(36.04% 0.129 280.6) |
| XYZ | xyz(6.1974, 4.2690, 20.2321) |
| Luminance | 0.0427 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.83
Blueberry
#464196
ΔE00 6.09
Midnight Blue
#191970
ΔE00 6.36
Sapphire (survey)
#2138AB
ΔE00 7.49
Royal
#0C1793
ΔE00 7.73
Marine
#042E60
ΔE00 9.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342F7E #797E2F
analogous
#2F527E #342F7E #5C2F7E
triadic
#342F7E #7E342F #2F7E34
tetradic
#342F7E #7E2F52 #797E2F #2F7E5C
square
#342F7E #7E2F52 #797E2F #2F7E5C
split-complementary
#342F7E #7E5C2F #527E2F
monochromatic
#0F0E25 #221E51 #342F7E #4640AB #6963C5
Accessibility & contrast
On white
11.33
#342F7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#342F7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342F7E
11.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342F7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342F7E | 1.00 | 11.33 | 1.85 | 11.33 |
| #FFFFFF | 11.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#0C4251
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #342f7e; /* rgb */ color: rgb(52, 47, 126); /* oklch */ color: oklch(36.0% 0.129 280.6);
Tailwind
colors: {
custom: {
50: '#7368a4',
500: '#342f7e',
950: '#000000',
},
}SCSS
$custom: #342f7e; $custom-light: #7368a4; $custom-dark: #000000;
JSON
{
"hex": "#342f7e",
"rgb": {
"r": 52,
"g": 47,
"b": 126
},
"hsl": {
"h": 243.797,
"s": 45.665,
"l": 33.922
},
"oklch": {
"l": 0.3604,
"c": 0.12918,
"h": 280.6
},
"luminance": 0.04269
}Semantic roles & 50–950 ramp
primary
#342F7E
secondary
#A7AC5D
accent
#D552CD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F