#2342A7#2342A7
#2342A7 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.3% C 0.167 H 266.2°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).
Color values
| HEX | #2342A7 |
|---|---|
| RGB | rgb(35, 66, 167) |
| HSL | hsl(226, 65%, 40%) |
| HSV | hsv(226, 79%, 65%) |
| CMYK | cmyk(79%, 60.5%, 0%, 34.5%) |
| CIE-LAB | lab(31.90, 26.48, -57.48) |
| CIE-LCH | lch(31.90, 63.29, 294.74°) |
| OKLab | oklab(42.29% -0.0112 -0.1661) |
| OKLCH | oklch(42.29% 0.167 266.2) |
| XYZ | xyz(9.6140, 7.0427, 37.4044) |
| Luminance | 0.0704 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.98
Sapphire (survey)
#2138AB
ΔE00 3.33
Blue Blue
#2242C7
ΔE00 4.47
Cobalt (survey)
#1E488F
ΔE00 4.94
Blueberry
#464196
ΔE00 5.68
Sapphire
#0F52BA
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2342A7 #A78823
analogous
#2384A7 #2342A7 #4623A7
triadic
#2342A7 #A72342 #42A723
tetradic
#2342A7 #A72384 #A78823 #23A746
square
#2342A7 #A72384 #A78823 #23A746
split-complementary
#2342A7 #A74623 #84A723
monochromatic
#0E1A42 #182E74 #2342A7 #3359D4 #6682DF
Accessibility & contrast
On white
8.72
#2342A7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.41
#2342A7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2342A7
8.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2342A7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2342A7 | 1.00 | 8.72 | 2.41 | 8.72 |
| #FFFFFF | 8.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#005C6E
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #2342a7; /* rgb */ color: rgb(35, 66, 167); /* oklch */ color: oklch(42.3% 0.167 266.2);
Tailwind
colors: {
custom: {
50: '#7476c2',
500: '#2342a7',
950: '#000000',
},
}SCSS
$custom: #2342a7; $custom-light: #7476c2; $custom-dark: #000000;
JSON
{
"hex": "#2342a7",
"rgb": {
"r": 35,
"g": 66,
"b": 167
},
"hsl": {
"h": 225.909,
"s": 65.347,
"l": 39.608
},
"oklch": {
"l": 0.42292,
"c": 0.1665,
"h": 266.2
},
"luminance": 0.07044
}Semantic roles & 50–950 ramp
primary
#2342A7
secondary
#C4AD61
accent
#C13FE8
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81