#2A47A6#2A47A6
#2A47A6 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.5% C 0.157 H 266.8°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).
Color values
| HEX | #2A47A6 |
|---|---|
| RGB | rgb(42, 71, 166) |
| HSL | hsl(226, 60%, 41%) |
| HSV | hsv(226, 75%, 65%) |
| CMYK | cmyk(74.7%, 57.2%, 0%, 34.9%) |
| CIE-LAB | lab(33.46, 23.55, -54.33) |
| CIE-LCH | lch(33.46, 59.22, 293.44°) |
| OKLab | oklab(43.51% -0.0088 -0.1567) |
| OKLCH | oklch(43.51% 0.157 266.8) |
| XYZ | xyz(10.0886, 7.7508, 37.0334) |
| Luminance | 0.0775 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.60
Cobalt (survey)
#1E488F
ΔE00 4.26
Sapphire (survey)
#2138AB
ΔE00 4.83
Sapphire
#0F52BA
ΔE00 4.86
Blue Blue
#2242C7
ΔE00 4.93
Blueberry
#464196
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A47A6 #A6892A
analogous
#2A85A6 #2A47A6 #4B2AA6
triadic
#2A47A6 #A62A47 #47A62A
tetradic
#2A47A6 #A62A85 #A6892A #2AA64B
square
#2A47A6 #A62A85 #A6892A #2AA64B
split-complementary
#2A47A6 #A64B2A #85A62A
monochromatic
#111D44 #1E3275 #2A47A6 #3F60CE #7089DB
Accessibility & contrast
On white
8.23
#2A47A6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.55
#2A47A6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A47A6
8.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A47A6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A47A6 | 1.00 | 8.23 | 2.55 | 8.23 |
| #FFFFFF | 8.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055A9
Deuteranopia (green-blind)
#0049A4
Tritanopia (blue-blind)
#005E6F
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #2a47a6; /* rgb */ color: rgb(42, 71, 166); /* oklch */ color: oklch(43.5% 0.157 266.8);
Tailwind
colors: {
custom: {
50: '#7679c1',
500: '#2a47a6',
950: '#000000',
},
}SCSS
$custom: #2a47a6; $custom-light: #7679c1; $custom-dark: #000000;
JSON
{
"hex": "#2a47a6",
"rgb": {
"r": 42,
"g": 71,
"b": 166
},
"hsl": {
"h": 225.968,
"s": 59.615,
"l": 40.784
},
"oklch": {
"l": 0.43512,
"c": 0.15694,
"h": 266.8
},
"luminance": 0.07752
}Semantic roles & 50–950 ramp
primary
#2A47A6
secondary
#C2AD6A
accent
#BE45E3
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0912
muted
#7C7B81