#2A478A#2A478A
#2A478A is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.3% C 0.117 H 264.3°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).
Color values
| HEX | #2A478A |
|---|---|
| RGB | rgb(42, 71, 138) |
| HSL | hsl(222, 53%, 35%) |
| HSV | hsv(222, 70%, 54%) |
| CMYK | cmyk(69.6%, 48.6%, 0%, 45.9%) |
| CIE-LAB | lab(31.42, 12.81, -40.62) |
| CIE-LCH | lch(31.42, 42.59, 287.51°) |
| OKLab | oklab(41.32% -0.0116 -0.1163) |
| OKLCH | oklch(41.32% 0.117 264.3) |
| XYZ | xyz(7.7939, 6.8329, 24.9480) |
| Luminance | 0.0683 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 1.77
Darkish Blue
#014182
ΔE00 3.98
Twilight Blue
#0A437A
ΔE00 4.56
Cobalt
#0047AB
ΔE00 4.75
Dusk Blue
#26538D
ΔE00 4.80
Prussian Blue
#004577
ΔE00 5.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A478A #8A6D2A
analogous
#2A778A #2A478A #3D2A8A
triadic
#2A478A #8A2A47 #478A2A
tetradic
#2A478A #8A2A77 #8A6D2A #2A8A3D
square
#2A478A #8A2A77 #8A6D2A #2A8A3D
split-complementary
#2A478A #8A3D2A #778A2A
monochromatic
#0D172C #1C2F5B #2A478A #385FB9 #6081CF
Accessibility & contrast
On white
8.87
#2A478A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.37
#2A478A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A478A
8.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A478A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A478A | 1.00 | 8.87 | 2.37 | 8.87 |
| #FFFFFF | 8.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#244F8C
Deuteranopia (green-blind)
#0F4689
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #2a478a; /* rgb */ color: rgb(42, 71, 138); /* oklch */ color: oklch(41.3% 0.117 264.3);
Tailwind
colors: {
custom: {
50: '#6f79ad',
500: '#2a478a',
950: '#000000',
},
}SCSS
$custom: #2a478a; $custom-light: #6f79ad; $custom-dark: #000000;
JSON
{
"hex": "#2a478a",
"rgb": {
"r": 42,
"g": 71,
"b": 138
},
"hsl": {
"h": 221.875,
"s": 53.333,
"l": 35.294
},
"oklch": {
"l": 0.41323,
"c": 0.11692,
"h": 264.3
},
"luminance": 0.06834
}Semantic roles & 50–950 ramp
primary
#2A478A
secondary
#B4995B
accent
#B14BDD
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F