#342F7C#342F7C
#342F7C is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.126 H 280.8°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).
Color values
| HEX | #342F7C |
|---|---|
| RGB | rgb(52, 47, 124) |
| HSL | hsl(244, 45%, 34%) |
| HSV | hsv(244, 62%, 49%) |
| CMYK | cmyk(58.1%, 62.1%, 0%, 51.4%) |
| CIE-LAB | lab(24.38, 25.81, -43.23) |
| CIE-LCH | lch(24.38, 50.35, 300.83°) |
| OKLab | oklab(35.87% 0.0238 -0.124) |
| OKLCH | oklch(35.87% 0.126 280.8) |
| XYZ | xyz(6.0696, 4.2179, 19.5592) |
| Luminance | 0.0422 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.91
Blueberry
#464196
ΔE00 6.25
Midnight Blue
#191970
ΔE00 6.36
Sapphire (survey)
#2138AB
ΔE00 7.81
Royal
#0C1793
ΔE00 7.97
Marine
#042E60
ΔE00 8.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342F7C #777C2F
analogous
#2F507C #342F7C #5A2F7C
triadic
#342F7C #7C342F #2F7C34
tetradic
#342F7C #7C2F50 #777C2F #2F7C5A
square
#342F7C #7C2F50 #777C2F #2F7C5A
split-complementary
#342F7C #7C5A2F #507C2F
monochromatic
#0F0D23 #211E50 #342F7C #4740A8 #6862C3
Accessibility & contrast
On white
11.39
#342F7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#342F7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342F7C
11.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342F7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342F7C | 1.00 | 11.39 | 1.84 | 11.39 |
| #FFFFFF | 11.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D7F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#0F4150
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #342f7c; /* rgb */ color: rgb(52, 47, 124); /* oklch */ color: oklch(35.9% 0.126 280.8);
Tailwind
colors: {
custom: {
50: '#7368a3',
500: '#342f7c',
950: '#000000',
},
}SCSS
$custom: #342f7c; $custom-light: #7368a3; $custom-dark: #000000;
JSON
{
"hex": "#342f7c",
"rgb": {
"r": 52,
"g": 47,
"b": 124
},
"hsl": {
"h": 243.896,
"s": 45.029,
"l": 33.529
},
"oklch": {
"l": 0.3587,
"c": 0.1263,
"h": 280.8
},
"luminance": 0.04218
}Semantic roles & 50–950 ramp
primary
#342F7C
secondary
#A5AA5C
accent
#D553CC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F