#342F9C#342F9C
#342F9C is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.8% C 0.170 H 277.0°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).
Color values
| HEX | #342F9C |
|---|---|
| RGB | rgb(52, 47, 156) |
| HSL | hsl(243, 54%, 40%) |
| HSV | hsv(243, 70%, 61%) |
| CMYK | cmyk(66.7%, 69.9%, 0%, 38.8%) |
| CIE-LAB | lab(27.19, 36.82, -58.50) |
| CIE-LCH | lch(27.19, 69.12, 302.18°) |
| OKLab | oklab(38.79% 0.0206 -0.1689) |
| OKLCH | oklch(38.79% 0.17 277) |
| XYZ | xyz(8.4315, 5.1627, 31.9982) |
| Luminance | 0.0516 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.94
Indigo Blue
#3A18B1
ΔE00 5.60
Blueberry
#464196
ΔE00 5.66
Darkslateblue
#483D8B
ΔE00 5.95
Royal
#0C1793
ΔE00 6.19
Ocean Blue
#4F42B5
ΔE00 6.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342F9C #979C2F
analogous
#2F619C #342F9C #6A2F9C
triadic
#342F9C #9C342F #2F9C34
tetradic
#342F9C #9C2F61 #979C2F #2F9C6A
square
#342F9C #9C2F61 #979C2F #2F9C6A
split-complementary
#342F9C #9C6A2F #619C2F
monochromatic
#15133E #24216D #342F9C #4842C6 #7671D4
Accessibility & contrast
On white
10.33
#342F9C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.03
#342F9C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342F9C
10.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342F9C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342F9C | 1.00 | 10.33 | 2.03 | 10.33 |
| #FFFFFF | 10.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#003C9A
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #342f9c; /* rgb */ color: rgb(52, 47, 156); /* oklch */ color: oklch(38.8% 0.170 277.0);
Tailwind
colors: {
custom: {
50: '#7968ba',
500: '#342f9c',
950: '#000000',
},
}SCSS
$custom: #342f9c; $custom-light: #7968ba; $custom-dark: #000000;
JSON
{
"hex": "#342f9c",
"rgb": {
"r": 52,
"g": 47,
"b": 156
},
"hsl": {
"h": 242.752,
"s": 53.695,
"l": 39.804
},
"oklch": {
"l": 0.38788,
"c": 0.17011,
"h": 277
},
"luminance": 0.05163
}Semantic roles & 50–950 ramp
primary
#342F9C
secondary
#B8BC6B
accent
#DD4BD6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81