#342F98#342F98
#342F98 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.4% C 0.165 H 277.4°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).
Color values
| HEX | #342F98 |
|---|---|
| RGB | rgb(52, 47, 152) |
| HSL | hsl(243, 53%, 39%) |
| HSV | hsv(243, 69%, 60%) |
| CMYK | cmyk(65.8%, 69.1%, 0%, 40.4%) |
| CIE-LAB | lab(26.82, 35.45, -56.67) |
| CIE-LCH | lch(26.82, 66.85, 302.03°) |
| OKLab | oklab(38.4% 0.0212 -0.1635) |
| OKLCH | oklch(38.4% 0.165 277.4) |
| XYZ | xyz(8.0983, 5.0294, 30.2437) |
| Luminance | 0.0503 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.24
Blueberry
#464196
ΔE00 5.53
Darkslateblue
#483D8B
ΔE00 5.64
Indigo Blue
#3A18B1
ΔE00 5.99
Royal
#0C1793
ΔE00 6.15
Ocean Blue
#4F42B5
ΔE00 7.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#342F98 #93982F
analogous
#2F5F98 #342F98 #692F98
triadic
#342F98 #98342F #2F9834
tetradic
#342F98 #982F5F #93982F #2F9869
square
#342F98 #982F5F #93982F #2F9869
split-complementary
#342F98 #98692F #5F982F
monochromatic
#14123B #242169 #342F98 #4640C4 #746FD2
Accessibility & contrast
On white
10.47
#342F98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.01
#342F98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #342F98
10.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##342F98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##342F98 | 1.00 | 10.47 | 2.01 | 10.47 |
| #FFFFFF | 10.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00449B
Deuteranopia (green-blind)
#003B96
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #342f98; /* rgb */ color: rgb(52, 47, 152); /* oklch */ color: oklch(38.4% 0.165 277.4);
Tailwind
colors: {
custom: {
50: '#7868b7',
500: '#342f98',
950: '#000000',
},
}SCSS
$custom: #342f98; $custom-light: #7868b7; $custom-dark: #000000;
JSON
{
"hex": "#342f98",
"rgb": {
"r": 52,
"g": 47,
"b": 152
},
"hsl": {
"h": 242.857,
"s": 52.764,
"l": 39.02
},
"oklch": {
"l": 0.38404,
"c": 0.16487,
"h": 277.4
},
"luminance": 0.0503
}Semantic roles & 50–950 ramp
primary
#342F98
secondary
#B6BA69
accent
#DC4CD5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80