#342A9F#342A9F
#342A9F is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.3% C 0.179 H 277.5°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).
Color values
| HEX | #342A9F |
|---|---|
| RGB | rgb(52, 42, 159) |
| HSL | hsl(245, 58%, 39%) |
| HSV | hsv(245, 74%, 62%) |
| CMYK | cmyk(67.3%, 73.6%, 0%, 37.6%) |
| CIE-LAB | lab(26.41, 40.77, -61.61) |
| CIE-LCH | lch(26.41, 73.88, 303.50°) |
| OKLab | oklab(38.32% 0.0235 -0.1779) |
| OKLCH | oklch(38.32% 0.179 277.5) |
| XYZ | xyz(8.5001, 4.8885, 33.2898) |
| Luminance | 0.0489 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.25
Sapphire (survey)
#2138AB
ΔE00 4.82
Royal
#0C1793
ΔE00 5.29
Cobalt Blue
#030AA7
ΔE00 6.17
Ultramarine
#2000B1
ΔE00 6.45
Royal Blue (survey)
#0504AA
ΔE00 6.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342A9F #959F2A
analogous
#2A5B9F #342A9F #6F2A9F
triadic
#342A9F #9F342A #2A9F34
tetradic
#342A9F #9F2A5B #959F2A #2A9F6F
square
#342A9F #9F2A5B #959F2A #2A9F6F
split-complementary
#342A9F #9F6F2A #5B9F2A
monochromatic
#14103E #241D6F #342A9F #473BCB #756BD8
Accessibility & contrast
On white
10.62
#342A9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.98
#342A9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342A9F
10.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342A9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342A9F | 1.00 | 10.62 | 1.98 | 10.62 |
| #FFFFFF | 10.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#003A9D
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #342a9f; /* rgb */ color: rgb(52, 42, 159); /* oklch */ color: oklch(38.3% 0.179 277.5);
Tailwind
colors: {
custom: {
50: '#7a65bd',
500: '#342a9f',
950: '#000000',
},
}SCSS
$custom: #342a9f; $custom-light: #7a65bd; $custom-dark: #000000;
JSON
{
"hex": "#342a9f",
"rgb": {
"r": 52,
"g": 42,
"b": 159
},
"hsl": {
"h": 245.128,
"s": 58.209,
"l": 39.412
},
"oklch": {
"l": 0.3832,
"c": 0.17948,
"h": 277.5
},
"luminance": 0.04889
}Semantic roles & 50–950 ramp
primary
#342A9F
secondary
#B7BF66
accent
#E146D4
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81