#342E7A#342E7A
#342E7A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.125 H 281.5°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).
Color values
| HEX | #342E7A |
|---|---|
| RGB | rgb(52, 46, 122) |
| HSL | hsl(245, 45%, 33%) |
| HSV | hsv(245, 62%, 48%) |
| CMYK | cmyk(57.4%, 62.3%, 0%, 52.2%) |
| CIE-LAB | lab(23.96, 25.77, -42.64) |
| CIE-LCH | lch(23.96, 49.82, 301.15°) |
| OKLab | oklab(35.51% 0.0249 -0.1223) |
| OKLCH | oklch(35.51% 0.125 281.5) |
| XYZ | xyz(5.9049, 4.0888, 18.8866) |
| Luminance | 0.0409 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.17
Midnight Blue
#191970
ΔE00 6.13
Blueberry
#464196
ΔE00 6.61
Royal
#0C1793
ΔE00 7.99
Sapphire (survey)
#2138AB
ΔE00 8.20
Marine
#042E60
ΔE00 8.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342E7A #747A2E
analogous
#2E4E7A #342E7A #5A2E7A
triadic
#342E7A #7A342E #2E7A34
tetradic
#342E7A #7A2E4E #747A2E #2E7A5A
square
#342E7A #7A2E4E #747A2E #2E7A5A
split-complementary
#342E7A #7A5A2E #4E7A2E
monochromatic
#0E0C21 #211D4E #342E7A #473FA6 #6760C3
Accessibility & contrast
On white
11.55
#342E7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#342E7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342E7A
11.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342E7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342E7A | 1.00 | 11.55 | 1.82 | 11.55 |
| #FFFFFF | 11.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C7C
Deuteranopia (green-blind)
#003678
Tritanopia (blue-blind)
#12404F
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #342e7a; /* rgb */ color: rgb(52, 46, 122); /* oklch */ color: oklch(35.5% 0.125 281.5);
Tailwind
colors: {
custom: {
50: '#7367a1',
500: '#342e7a',
950: '#000000',
},
}SCSS
$custom: #342e7a; $custom-light: #7367a1; $custom-dark: #000000;
JSON
{
"hex": "#342e7a",
"rgb": {
"r": 52,
"g": 46,
"b": 122
},
"hsl": {
"h": 244.737,
"s": 45.238,
"l": 32.941
},
"oklch": {
"l": 0.35513,
"c": 0.12483,
"h": 281.5
},
"luminance": 0.04089
}Semantic roles & 50–950 ramp
primary
#342E7A
secondary
#A3AA5A
accent
#D553CB
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F