#342F99#342F99
#342F99 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.5% C 0.166 H 277.3°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).
Color values
| HEX | #342F99 |
|---|---|
| RGB | rgb(52, 47, 153) |
| HSL | hsl(243, 53%, 39%) |
| HSV | hsv(243, 69%, 60%) |
| CMYK | cmyk(66%, 69.3%, 0%, 40%) |
| CIE-LAB | lab(26.91, 35.80, -57.13) |
| CIE-LCH | lch(26.91, 67.42, 302.07°) |
| OKLab | oklab(38.5% 0.021 -0.1648) |
| OKLCH | oklch(38.5% 0.166 277.3) |
| XYZ | xyz(8.1806, 5.0623, 30.6768) |
| Luminance | 0.0506 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.16
Blueberry
#464196
ΔE00 5.56
Darkslateblue
#483D8B
ΔE00 5.72
Indigo Blue
#3A18B1
ΔE00 5.88
Royal
#0C1793
ΔE00 6.16
Ocean Blue
#4F42B5
ΔE00 7.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342F99 #94992F
analogous
#2F5F99 #342F99 #692F99
triadic
#342F99 #99342F #2F9934
tetradic
#342F99 #992F5F #94992F #2F9969
square
#342F99 #992F5F #94992F #2F9969
split-complementary
#342F99 #99692F #5F992F
monochromatic
#14123B #24216A #342F99 #4741C5 #746FD3
Accessibility & contrast
On white
10.43
#342F99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.01
#342F99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342F99
10.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342F99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342F99 | 1.00 | 10.43 | 2.01 | 10.43 |
| #FFFFFF | 10.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00449C
Deuteranopia (green-blind)
#003B97
Tritanopia (blue-blind)
#004B60
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #342f99; /* rgb */ color: rgb(52, 47, 153); /* oklch */ color: oklch(38.5% 0.166 277.3);
Tailwind
colors: {
custom: {
50: '#7968b8',
500: '#342f99',
950: '#000000',
},
}SCSS
$custom: #342f99; $custom-light: #7968b8; $custom-dark: #000000;
JSON
{
"hex": "#342f99",
"rgb": {
"r": 52,
"g": 47,
"b": 153
},
"hsl": {
"h": 242.83,
"s": 53,
"l": 39.216
},
"oklch": {
"l": 0.38499,
"c": 0.16619,
"h": 277.3
},
"luminance": 0.05063
}Semantic roles & 50–950 ramp
primary
#342F99
secondary
#B7BA69
accent
#DC4BD6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80