#342A6E#342A6E
#342A6E is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.8% C 0.113 H 285.3°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).
Color values
| HEX | #342A6E |
|---|---|
| RGB | rgb(52, 42, 110) |
| HSL | hsl(249, 45%, 30%) |
| HSV | hsv(249, 62%, 43%) |
| CMYK | cmyk(52.7%, 61.8%, 0%, 56.9%) |
| CIE-LAB | lab(21.99, 24.33, -38.17) |
| CIE-LCH | lch(21.99, 45.26, 302.52°) |
| OKLab | oklab(33.76% 0.0299 -0.1092) |
| OKLCH | oklch(33.76% 0.113 285.3) |
| XYZ | xyz(5.0578, 3.5115, 15.1601) |
| Luminance | 0.0351 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.83
Darkslateblue
#483D8B
ΔE00 6.74
Blueberry
#464196
ΔE00 8.55
Dark Indigo
#1F0954
ΔE00 8.66
Royal
#0C1793
ΔE00 9.02
Marine
#042E60
ΔE00 9.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342A6E #646E2A
analogous
#2A426E #342A6E #562A6E
triadic
#342A6E #6E342A #2A6E34
tetradic
#342A6E #6E2A42 #646E2A #2A6E56
square
#342A6E #6E2A42 #646E2A #2A6E56
split-complementary
#342A6E #6E562A #426E2A
monochromatic
#0A0816 #1F1942 #342A6E #493B9A #6455BE
Accessibility & contrast
On white
12.34
#342A6E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#342A6E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342A6E
12.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342A6E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342A6E | 1.00 | 12.34 | 1.70 | 12.34 |
| #FFFFFF | 12.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003770
Deuteranopia (green-blind)
#00336D
Tritanopia (blue-blind)
#1F3A47
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #342a6e; /* rgb */ color: rgb(52, 42, 110); /* oklch */ color: oklch(33.8% 0.113 285.3);
Tailwind
colors: {
custom: {
50: '#716498',
500: '#342a6e',
950: '#000000',
},
}SCSS
$custom: #342a6e; $custom-light: #716498; $custom-dark: #000000;
JSON
{
"hex": "#342a6e",
"rgb": {
"r": 52,
"g": 42,
"b": 110
},
"hsl": {
"h": 248.824,
"s": 44.737,
"l": 29.804
},
"oklch": {
"l": 0.33756,
"c": 0.11321,
"h": 285.3
},
"luminance": 0.03512
}Semantic roles & 50–950 ramp
primary
#342A6E
secondary
#95A054
accent
#D453C1
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E