#342D79#342D79
#342D79 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.2% C 0.125 H 282.0°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).
Color values
| HEX | #342D79 |
|---|---|
| RGB | rgb(52, 45, 121) |
| HSL | hsl(246, 46%, 33%) |
| HSV | hsv(246, 63%, 47%) |
| CMYK | cmyk(57%, 62.8%, 0%, 52.5%) |
| CIE-LAB | lab(23.63, 26.09, -42.55) |
| CIE-LCH | lch(23.63, 49.91, 301.52°) |
| OKLab | oklab(35.24% 0.0261 -0.1221) |
| OKLCH | oklch(35.24% 0.125 282) |
| XYZ | xyz(5.8047, 3.9870, 18.5491) |
| Luminance | 0.0399 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.40
Midnight Blue
#191970
ΔE00 5.90
Blueberry
#464196
ΔE00 6.88
Royal
#0C1793
ΔE00 7.90
Sapphire (survey)
#2138AB
ΔE00 8.44
Marine
#042E60
ΔE00 9.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342D79 #72792D
analogous
#2D4C79 #342D79 #5A2D79
triadic
#342D79 #79342D #2D7934
tetradic
#342D79 #792D4C #72792D #2D795A
square
#342D79 #792D4C #72792D #2D795A
split-complementary
#342D79 #795A2D #4C792D
monochromatic
#0E0C20 #211C4C #342D79 #473EA6 #675DC3
Accessibility & contrast
On white
11.68
#342D79 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#342D79 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342D79
11.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342D79 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342D79 | 1.00 | 11.68 | 1.80 | 11.68 |
| #FFFFFF | 11.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B7B
Deuteranopia (green-blind)
#003677
Tritanopia (blue-blind)
#143F4E
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #342d79; /* rgb */ color: rgb(52, 45, 121); /* oklch */ color: oklch(35.2% 0.125 282.0);
Tailwind
colors: {
custom: {
50: '#7366a0',
500: '#342d79',
950: '#000000',
},
}SCSS
$custom: #342d79; $custom-light: #7366a0; $custom-dark: #000000;
JSON
{
"hex": "#342d79",
"rgb": {
"r": 52,
"g": 45,
"b": 121
},
"hsl": {
"h": 245.526,
"s": 45.783,
"l": 32.549
},
"oklch": {
"l": 0.35241,
"c": 0.12481,
"h": 282
},
"luminance": 0.03987
}Semantic roles & 50–950 ramp
primary
#342D79
secondary
#A2A958
accent
#D552C9
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E