#342F78#342F78
#342F78 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.121 H 281.4°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).
Color values
| HEX | #342F78 |
|---|---|
| RGB | rgb(52, 47, 120) |
| HSL | hsl(244, 44%, 33%) |
| HSV | hsv(244, 61%, 47%) |
| CMYK | cmyk(56.7%, 60.8%, 0%, 52.9%) |
| CIE-LAB | lab(24.06, 24.42, -41.21) |
| CIE-LCH | lch(24.06, 47.90, 300.65°) |
| OKLab | oklab(35.53% 0.0239 -0.1181) |
| OKLCH | oklch(35.53% 0.121 281.4) |
| XYZ | xyz(5.8218, 4.1188, 18.2539) |
| Luminance | 0.0412 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.13
Midnight Blue
#191970
ΔE00 6.44
Blueberry
#464196
ΔE00 6.63
Sapphire (survey)
#2138AB
ΔE00 8.47
Royal
#0C1793
ΔE00 8.50
Marine
#042E60
ΔE00 8.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342F78 #73782F
analogous
#2F4E78 #342F78 #592F78
triadic
#342F78 #78342F #2F7834
tetradic
#342F78 #782F4E #73782F #2F7859
square
#342F78 #782F4E #73782F #2F7859
split-complementary
#342F78 #78592F #4E782F
monochromatic
#0E0D20 #211E4C #342F78 #4740A4 #6760C1
Accessibility & contrast
On white
11.51
#342F78 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#342F78 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342F78
11.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342F78 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342F78 | 1.00 | 11.51 | 1.82 | 11.51 |
| #FFFFFF | 11.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C7A
Deuteranopia (green-blind)
#003776
Tritanopia (blue-blind)
#15404E
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #342f78; /* rgb */ color: rgb(52, 47, 120); /* oklch */ color: oklch(35.5% 0.121 281.4);
Tailwind
colors: {
custom: {
50: '#7267a0',
500: '#342f78',
950: '#000000',
},
}SCSS
$custom: #342f78; $custom-light: #7267a0; $custom-dark: #000000;
JSON
{
"hex": "#342f78",
"rgb": {
"r": 52,
"g": 47,
"b": 120
},
"hsl": {
"h": 244.11,
"s": 43.713,
"l": 32.745
},
"oklch": {
"l": 0.35534,
"c": 0.12051,
"h": 281.4
},
"luminance": 0.04119
}Semantic roles & 50–950 ramp
primary
#342F78
secondary
#A3A85B
accent
#D354CB
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E