#342F7A#342F7A
#342F7A is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.123 H 281.1°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).
Color values
| HEX | #342F7A |
|---|---|
| RGB | rgb(52, 47, 122) |
| HSL | hsl(244, 44%, 33%) |
| HSV | hsv(244, 61%, 48%) |
| CMYK | cmyk(57.4%, 61.5%, 0%, 52.2%) |
| CIE-LAB | lab(24.22, 25.11, -42.22) |
| CIE-LCH | lch(24.22, 49.13, 300.74°) |
| OKLab | oklab(35.7% 0.0238 -0.1211) |
| OKLCH | oklch(35.7% 0.123 281.1) |
| XYZ | xyz(5.9445, 4.1679, 18.8998) |
| Luminance | 0.0417 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.01
Midnight Blue
#191970
ΔE00 6.39
Blueberry
#464196
ΔE00 6.43
Sapphire (survey)
#2138AB
ΔE00 8.13
Royal
#0C1793
ΔE00 8.23
Marine
#042E60
ΔE00 8.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342F7A #757A2F
analogous
#2F4F7A #342F7A #592F7A
triadic
#342F7A #7A342F #2F7A34
tetradic
#342F7A #7A2F4F #757A2F #2F7A59
square
#342F7A #7A2F4F #757A2F #2F7A59
split-complementary
#342F7A #7A592F #4F7A2F
monochromatic
#0E0D22 #211E4E #342F7A #4740A6 #6861C2
Accessibility & contrast
On white
11.45
#342F7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#342F7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342F7A
11.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342F7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342F7A | 1.00 | 11.45 | 1.83 | 11.45 |
| #FFFFFF | 11.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C7C
Deuteranopia (green-blind)
#003778
Tritanopia (blue-blind)
#12414F
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #342f7a; /* rgb */ color: rgb(52, 47, 122); /* oklch */ color: oklch(35.7% 0.123 281.1);
Tailwind
colors: {
custom: {
50: '#7367a1',
500: '#342f7a',
950: '#000000',
},
}SCSS
$custom: #342f7a; $custom-light: #7367a1; $custom-dark: #000000;
JSON
{
"hex": "#342f7a",
"rgb": {
"r": 52,
"g": 47,
"b": 122
},
"hsl": {
"h": 244,
"s": 44.379,
"l": 33.137
},
"oklch": {
"l": 0.35701,
"c": 0.12342,
"h": 281.1
},
"luminance": 0.04168
}Semantic roles & 50–950 ramp
primary
#342F7A
secondary
#A4A95C
accent
#D454CC
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F