#342C8F#342C8F
#342C8F is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.1% C 0.157 H 279.1°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).
Color values
| HEX | #342C8F |
|---|---|
| RGB | rgb(52, 44, 143) |
| HSL | hsl(245, 53%, 37%) |
| HSV | hsv(245, 69%, 56%) |
| CMYK | cmyk(63.6%, 69.2%, 0%, 43.9%) |
| CIE-LAB | lab(25.30, 34.25, -53.61) |
| CIE-LCH | lch(25.30, 63.62, 302.57°) |
| OKLab | oklab(37.05% 0.0248 -0.1545) |
| OKLCH | oklch(37.05% 0.157 279.1) |
| XYZ | xyz(7.2732, 4.5140, 26.4693) |
| Luminance | 0.0452 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.61
Royal
#0C1793
ΔE00 5.64
Darkslateblue
#483D8B
ΔE00 5.68
Blueberry
#464196
ΔE00 6.14
Indigo Blue
#3A18B1
ΔE00 6.42
Midnight Blue
#191970
ΔE00 6.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342C8F #878F2C
analogous
#2C568F #342C8F #662C8F
triadic
#342C8F #8F342C #2C8F34
tetradic
#342C8F #8F2C56 #878F2C #2C8F66
square
#342C8F #8F2C56 #878F2C #2C8F66
split-complementary
#342C8F #8F662C #568F2C
monochromatic
#120F31 #231E60 #342C8F #453ABE #6E66D0
Accessibility & contrast
On white
11.04
#342C8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#342C8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342C8F
11.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342C8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342C8F | 1.00 | 11.04 | 1.90 | 11.04 |
| #FFFFFF | 11.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #342c8f; /* rgb */ color: rgb(52, 44, 143); /* oklch */ color: oklch(37.1% 0.157 279.1);
Tailwind
colors: {
custom: {
50: '#7766b1',
500: '#342c8f',
950: '#000000',
},
}SCSS
$custom: #342c8f; $custom-light: #7766b1; $custom-dark: #000000;
JSON
{
"hex": "#342c8f",
"rgb": {
"r": 52,
"g": 44,
"b": 143
},
"hsl": {
"h": 244.848,
"s": 52.941,
"l": 36.667
},
"oklch": {
"l": 0.37054,
"c": 0.15653,
"h": 279.1
},
"luminance": 0.04515
}Semantic roles & 50–950 ramp
primary
#342C8F
secondary
#AFB661
accent
#DC4BD1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80