#342F6F#342F6F
#342F6F is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.8% C 0.107 H 282.8°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).
Color values
| HEX | #342F6F |
|---|---|
| RGB | rgb(52, 47, 111) |
| HSL | hsl(245, 41%, 31%) |
| HSV | hsv(245, 58%, 44%) |
| CMYK | cmyk(53.2%, 57.7%, 0%, 56.5%) |
| CIE-LAB | lab(23.37, 21.32, -36.57) |
| CIE-LCH | lch(23.37, 42.33, 300.24°) |
| OKLab | oklab(34.81% 0.0238 -0.1045) |
| OKLCH | oklch(34.81% 0.107 282.8) |
| XYZ | xyz(5.3011, 3.9105, 15.5113) |
| Luminance | 0.0391 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.99
Midnight Blue
#191970
ΔE00 7.03
Blueberry
#464196
ΔE00 7.72
Marine
#042E60
ΔE00 8.32
Navy Blue
#1B2A4A
ΔE00 8.68
Royal
#0C1793
ΔE00 9.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342F6F #6A6F2F
analogous
#2F4A6F #342F6F #542F6F
triadic
#342F6F #6F342F #2F6F34
tetradic
#342F6F #6F2F4A #6A6F2F #2F6F54
square
#342F6F #6F2F4A #6A6F2F #2F6F54
split-complementary
#342F6F #6F542F #4A6F2F
monochromatic
#0C0B19 #201D44 #342F6F #48419A #655EBB
Accessibility & contrast
On white
11.78
#342F6F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#342F6F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342F6F
11.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342F6F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342F6F | 1.00 | 11.78 | 1.78 | 11.78 |
| #FFFFFF | 11.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#093A71
Deuteranopia (green-blind)
#03366E
Tritanopia (blue-blind)
#1D3D4A
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #342f6f; /* rgb */ color: rgb(52, 47, 111); /* oklch */ color: oklch(34.8% 0.107 282.8);
Tailwind
colors: {
custom: {
50: '#716799',
500: '#342f6f',
950: '#000000',
},
}SCSS
$custom: #342f6f; $custom-light: #716799; $custom-dark: #000000;
JSON
{
"hex": "#342f6f",
"rgb": {
"r": 52,
"g": 47,
"b": 111
},
"hsl": {
"h": 244.688,
"s": 40.506,
"l": 30.98
},
"oklch": {
"l": 0.34807,
"c": 0.10713,
"h": 282.8
},
"luminance": 0.03911
}Semantic roles & 50–950 ramp
primary
#342F6F
secondary
#9BA059
accent
#D057C7
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E