#342F7D#342F7D
#342F7D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.0% C 0.128 H 280.7°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).
Color values
| HEX | #342F7D |
|---|---|
| RGB | rgb(52, 47, 125) |
| HSL | hsl(244, 45%, 34%) |
| HSV | hsv(244, 62%, 49%) |
| CMYK | cmyk(58.4%, 62.4%, 0%, 51%) |
| CIE-LAB | lab(24.46, 26.15, -43.73) |
| CIE-LCH | lch(24.46, 50.95, 300.88°) |
| OKLab | oklab(35.96% 0.0237 -0.1255) |
| OKLCH | oklch(35.96% 0.128 280.7) |
| XYZ | xyz(6.1332, 4.2434, 19.8939) |
| Luminance | 0.0424 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.86
Blueberry
#464196
ΔE00 6.17
Midnight Blue
#191970
ΔE00 6.35
Sapphire (survey)
#2138AB
ΔE00 7.65
Royal
#0C1793
ΔE00 7.85
Marine
#042E60
ΔE00 8.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342F7D #787D2F
analogous
#2F517D #342F7D #5B2F7D
triadic
#342F7D #7D342F #2F7D34
tetradic
#342F7D #7D2F51 #787D2F #2F7D5B
square
#342F7D #7D2F51 #787D2F #2F7D5B
split-complementary
#342F7D #7D5B2F #517D2F
monochromatic
#0F0E24 #211E51 #342F7D #4740A9 #6962C4
Accessibility & contrast
On white
11.36
#342F7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#342F7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342F7D
11.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342F7D | 1.00 | 11.36 | 1.85 | 11.36 |
| #FFFFFF | 11.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#0E4251
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #342f7d; /* rgb */ color: rgb(52, 47, 125); /* oklch */ color: oklch(36.0% 0.128 280.7);
Tailwind
colors: {
custom: {
50: '#7368a3',
500: '#342f7d',
950: '#000000',
},
}SCSS
$custom: #342f7d; $custom-light: #7368a3; $custom-dark: #000000;
JSON
{
"hex": "#342f7d",
"rgb": {
"r": 52,
"g": 47,
"b": 125
},
"hsl": {
"h": 243.846,
"s": 45.349,
"l": 33.725
},
"oklch": {
"l": 0.35955,
"c": 0.12775,
"h": 280.7
},
"luminance": 0.04244
}Semantic roles & 50–950 ramp
primary
#342F7D
secondary
#A6AB5D
accent
#D553CD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F