#342FB6#342FB6
#342FB6 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.4% C 0.203 H 274.6°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).
Color values
| HEX | #342FB6 |
|---|---|
| RGB | rgb(52, 47, 182) |
| HSL | hsl(242, 59%, 45%) |
| HSV | hsv(242, 74%, 71%) |
| CMYK | cmyk(71.4%, 74.2%, 0%, 28.6%) |
| CIE-LAB | lab(29.76, 45.48, -69.92) |
| CIE-LCH | lch(29.76, 83.41, 303.04°) |
| OKLab | oklab(41.4% 0.0161 -0.2022) |
| OKLCH | oklch(41.4% 0.203 274.6) |
| XYZ | xyz(10.8734, 6.1394, 44.8589) |
| Luminance | 0.0614 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.93
Indigo Blue
#3A18B1
ΔE00 4.55
Blue With A Hint Of Purple
#533CC6
ΔE00 5.38
Ocean Blue
#4F42B5
ΔE00 5.58
True Blue
#010FCC
ΔE00 5.67
Blurple
#5539CC
ΔE00 5.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342FB6 #B1B62F
analogous
#2F6EB6 #342FB6 #772FB6
triadic
#342FB6 #B6342F #2FB634
tetradic
#342FB6 #B62F6E #B1B62F #2FB677
square
#342FB6 #B62F6E #B1B62F #2FB677
split-complementary
#342FB6 #B6772F #6EB62F
monochromatic
#181655 #262285 #342FB6 #5550D2 #8481DE
Accessibility & contrast
On white
9.43
#342FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#342FB6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342FB6
9.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342FB6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342FB6 | 1.00 | 9.43 | 2.23 | 9.43 |
| #FFFFFF | 9.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004CBA
Deuteranopia (green-blind)
#0040B4
Tritanopia (blue-blind)
#005670
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #342fb6; /* rgb */ color: rgb(52, 47, 182); /* oklch */ color: oklch(41.4% 0.203 274.6);
Tailwind
colors: {
custom: {
50: '#7f69cd',
500: '#342fb6',
950: '#000000',
},
}SCSS
$custom: #342fb6; $custom-light: #7f69cd; $custom-dark: #000000;
JSON
{
"hex": "#342fb6",
"rgb": {
"r": 52,
"g": 47,
"b": 182
},
"hsl": {
"h": 242.222,
"s": 58.952,
"l": 44.902
},
"oklch": {
"l": 0.41397,
"c": 0.20284,
"h": 274.6
},
"luminance": 0.0614
}Semantic roles & 50–950 ramp
primary
#342FB6
secondary
#C5C779
accent
#E246DC
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82