#342B71#342B71
#342B71 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 34.2% C 0.116 H 284.3°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).
Color values
| HEX | #342B71 |
|---|---|
| RGB | rgb(52, 43, 113) |
| HSL | hsl(248, 45%, 31%) |
| HSV | hsv(248, 62%, 44%) |
| CMYK | cmyk(54%, 61.9%, 0%, 55.7%) |
| CIE-LAB | lab(22.48, 24.68, -39.30) |
| CIE-LCH | lch(22.48, 46.41, 302.13°) |
| OKLab | oklab(34.19% 0.0286 -0.1125) |
| OKLCH | oklch(34.19% 0.116 284.3) |
| XYZ | xyz(5.2598, 3.6498, 16.0469) |
| Luminance | 0.0365 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.80
Darkslateblue
#483D8B
ΔE00 6.30
Blueberry
#464196
ΔE00 8.04
Royal
#0C1793
ΔE00 8.70
Dark Indigo
#1F0954
ΔE00 9.03
Marine
#042E60
ΔE00 9.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342B71 #68712B
analogous
#2B4571 #342B71 #572B71
triadic
#342B71 #71342B #2B7134
tetradic
#342B71 #712B45 #68712B #2B7157
square
#342B71 #712B45 #68712B #2B7157
split-complementary
#342B71 #71572B #45712B
monochromatic
#0B0918 #201A45 #342B71 #483C9D #6557BF
Accessibility & contrast
On white
12.14
#342B71 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#342B71 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342B71
12.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342B71 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342B71 | 1.00 | 12.14 | 1.73 | 12.14 |
| #FFFFFF | 12.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003873
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#1C3B49
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #342b71; /* rgb */ color: rgb(52, 43, 113); /* oklch */ color: oklch(34.2% 0.116 284.3);
Tailwind
colors: {
custom: {
50: '#71649a',
500: '#342b71',
950: '#000000',
},
}SCSS
$custom: #342b71; $custom-light: #71649a; $custom-dark: #000000;
JSON
{
"hex": "#342b71",
"rgb": {
"r": 52,
"g": 43,
"b": 113
},
"hsl": {
"h": 247.714,
"s": 44.872,
"l": 30.588
},
"oklch": {
"l": 0.34193,
"c": 0.1161,
"h": 284.3
},
"luminance": 0.0365
}Semantic roles & 50–950 ramp
primary
#342B71
secondary
#99A355
accent
#D553C4
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050E
muted
#7B7A7E