#342D9F#342D9F
#342D9F is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.8% C 0.176 H 277.0°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).
Color values
| HEX | #342D9F |
|---|---|
| RGB | rgb(52, 45, 159) |
| HSL | hsl(244, 56%, 40%) |
| HSV | hsv(244, 72%, 62%) |
| CMYK | cmyk(67.3%, 71.7%, 0%, 37.6%) |
| CIE-LAB | lab(27.04, 39.03, -60.57) |
| CIE-LCH | lch(27.04, 72.05, 302.79°) |
| OKLab | oklab(38.77% 0.0215 -0.1749) |
| OKLCH | oklch(38.77% 0.176 277) |
| XYZ | xyz(8.6105, 5.1093, 33.3266) |
| Luminance | 0.0511 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.18
Indigo Blue
#3A18B1
ΔE00 4.88
Royal
#0C1793
ΔE00 5.85
Blueberry
#464196
ΔE00 6.24
Darkslateblue
#483D8B
ΔE00 6.53
Cobalt Blue
#030AA7
ΔE00 6.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342D9F #989F2D
analogous
#2D5F9F #342D9F #6D2D9F
triadic
#342D9F #9F342D #2D9F34
tetradic
#342D9F #9F2D5F #989F2D #2D9F6D
square
#342D9F #9F2D5F #989F2D #2D9F6D
split-complementary
#342D9F #9F6D2D #5F9F2D
monochromatic
#151240 #24206F #342D9F #4940C9 #7670D6
Accessibility & contrast
On white
10.39
#342D9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.02
#342D9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342D9F
10.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342D9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342D9F | 1.00 | 10.39 | 2.02 | 10.39 |
| #FFFFFF | 10.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#003B9D
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #342d9f; /* rgb */ color: rgb(52, 45, 159); /* oklch */ color: oklch(38.8% 0.176 277.0);
Tailwind
colors: {
custom: {
50: '#7a67bc',
500: '#342d9f',
950: '#000000',
},
}SCSS
$custom: #342d9f; $custom-light: #7a67bc; $custom-dark: #000000;
JSON
{
"hex": "#342d9f",
"rgb": {
"r": 52,
"g": 45,
"b": 159
},
"hsl": {
"h": 243.684,
"s": 55.882,
"l": 40
},
"oklch": {
"l": 0.38769,
"c": 0.17624,
"h": 277
},
"luminance": 0.0511
}Semantic roles & 50–950 ramp
primary
#342D9F
secondary
#B9BE6A
accent
#DF49D6
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81