#342FBC#342FBC
#342FBC is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 42.0% C 0.210 H 274.1°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).
Color values
| HEX | #342FBC |
|---|---|
| RGB | rgb(52, 47, 188) |
| HSL | hsl(242, 60%, 46%) |
| HSV | hsv(242, 75%, 74%) |
| CMYK | cmyk(72.3%, 75%, 0%, 26.3%) |
| CIE-LAB | lab(30.38, 47.42, -72.45) |
| CIE-LCH | lch(30.38, 86.59, 303.21°) |
| OKLab | oklab(42.02% 0.015 -0.2096) |
| OKLCH | oklch(42.02% 0.21 274.1) |
| XYZ | xyz(11.5068, 6.3928, 48.1947) |
| Luminance | 0.0639 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.33
Indigo Blue
#3A18B1
ΔE00 4.73
Blue With A Hint Of Purple
#533CC6
ΔE00 4.97
Blurple
#5539CC
ΔE00 5.17
True Blue
#010FCC
ΔE00 5.45
Ocean Blue
#4F42B5
ΔE00 5.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342FBC #B7BC2F
analogous
#2F70BC #342FBC #7A2FBC
triadic
#342FBC #BC342F #2FBC34
tetradic
#342FBC #BC2F70 #B7BC2F #2FBC7A
square
#342FBC #BC2F70 #B7BC2F #2FBC7A
split-complementary
#342FBC #BC7A2F #70BC2F
monochromatic
#19175A #26238B #342FBC #5954D4 #8885E0
Accessibility & contrast
On white
9.22
#342FBC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.28
#342FBC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342FBC
9.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342FBC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342FBC | 1.00 | 9.22 | 2.28 | 9.22 |
| #FFFFFF | 9.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EC0
Deuteranopia (green-blind)
#0041B9
Tritanopia (blue-blind)
#005873
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #342fbc; /* rgb */ color: rgb(52, 47, 188); /* oklch */ color: oklch(42.0% 0.210 274.1);
Tailwind
colors: {
custom: {
50: '#806ad1',
500: '#342fbc',
950: '#000000',
},
}SCSS
$custom: #342fbc; $custom-light: #806ad1; $custom-dark: #000000;
JSON
{
"hex": "#342fbc",
"rgb": {
"r": 52,
"g": 47,
"b": 188
},
"hsl": {
"h": 242.128,
"s": 60,
"l": 46.078
},
"oklch": {
"l": 0.42022,
"c": 0.2101,
"h": 274.1
},
"luminance": 0.06394
}Semantic roles & 50–950 ramp
primary
#342FBC
secondary
#C7CA7D
accent
#E345DE
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83