#342F71#342F71
#342F71 is a dark, moderate blue. Relative luminance 0.040; OKLCH L 35.0% C 0.110 H 282.5°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).
Color values
| HEX | #342F71 |
|---|---|
| RGB | rgb(52, 47, 113) |
| HSL | hsl(245, 41%, 31%) |
| HSV | hsv(245, 58%, 44%) |
| CMYK | cmyk(54%, 58.4%, 0%, 55.7%) |
| CIE-LAB | lab(23.52, 22.01, -37.61) |
| CIE-LCH | lch(23.52, 43.58, 300.33°) |
| OKLab | oklab(34.97% 0.0239 -0.1075) |
| OKLCH | oklch(34.97% 0.11 282.5) |
| XYZ | xyz(5.4124, 3.9551, 16.0978) |
| Luminance | 0.0396 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.76
Midnight Blue
#191970
ΔE00 6.85
Blueberry
#464196
ΔE00 7.45
Marine
#042E60
ΔE00 8.36
Navy Blue
#1B2A4A
ΔE00 8.90
Royal
#0C1793
ΔE00 9.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342F71 #6C712F
analogous
#2F4B71 #342F71 #552F71
triadic
#342F71 #71342F #2F7134
tetradic
#342F71 #712F4B #6C712F #2F7155
square
#342F71 #712F4B #6C712F #2F7155
split-complementary
#342F71 #71552F #4B712F
monochromatic
#0C0B1B #201D46 #342F71 #48419C #655EBC
Accessibility & contrast
On white
11.73
#342F71 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#342F71 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342F71
11.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342F71 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342F71 | 1.00 | 11.73 | 1.79 | 11.73 |
| #FFFFFF | 11.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#043A73
Deuteranopia (green-blind)
#003670
Tritanopia (blue-blind)
#1C3E4B
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #342f71; /* rgb */ color: rgb(52, 47, 113); /* oklch */ color: oklch(35.0% 0.110 282.5);
Tailwind
colors: {
custom: {
50: '#71679a',
500: '#342f71',
950: '#000000',
},
}SCSS
$custom: #342f71; $custom-light: #71679a; $custom-dark: #000000;
JSON
{
"hex": "#342f71",
"rgb": {
"r": 52,
"g": 47,
"b": 113
},
"hsl": {
"h": 244.545,
"s": 41.25,
"l": 31.373
},
"oklch": {
"l": 0.34965,
"c": 0.11014,
"h": 282.5
},
"luminance": 0.03955
}Semantic roles & 50–950 ramp
primary
#342F71
secondary
#9DA25A
accent
#D157C8
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E