#2A4CB4#2A4CB4
#2A4CB4 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.7% C 0.170 H 266.0°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).
Color values
| HEX | #2A4CB4 |
|---|---|
| RGB | rgb(42, 76, 180) |
| HSL | hsl(225, 62%, 44%) |
| HSV | hsv(225, 77%, 71%) |
| CMYK | cmyk(76.7%, 57.8%, 0%, 29.4%) |
| CIE-LAB | lab(35.90, 25.56, -58.70) |
| CIE-LCH | lch(35.90, 64.02, 293.53°) |
| OKLab | oklab(45.69% -0.0118 -0.1694) |
| OKLCH | oklch(45.69% 0.17 266) |
| XYZ | xyz(11.7746, 8.9551, 44.2791) |
| Luminance | 0.0896 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.11
Sapphire
#0F52BA
ΔE00 3.16
Blue Blue
#2242C7
ΔE00 4.20
Cobalt (survey)
#1E488F
ΔE00 5.66
Blue (survey)
#0343DF
ΔE00 6.01
Sapphire (survey)
#2138AB
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A4CB4 #B4922A
analogous
#2A91B4 #2A4CB4 #4D2AB4
triadic
#2A4CB4 #B42A4C #4CB42A
tetradic
#2A4CB4 #B42A91 #B4922A #2AB44D
square
#2A4CB4 #B42A91 #B4922A #2AB44D
split-complementary
#2A4CB4 #B44D2A #91B42A
monochromatic
#132251 #1E3782 #2A4CB4 #476AD4 #7992E0
Accessibility & contrast
On white
7.52
#2A4CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.79
#2A4CB4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A4CB4
7.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A4CB4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A4CB4 | 1.00 | 7.52 | 2.79 | 7.52 |
| #FFFFFF | 7.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BB8
Deuteranopia (green-blind)
#004EB2
Tritanopia (blue-blind)
#006678
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #2a4cb4; /* rgb */ color: rgb(42, 76, 180); /* oklch */ color: oklch(45.7% 0.170 266.0);
Tailwind
colors: {
custom: {
50: '#797dcb',
500: '#2a4cb4',
950: '#000000',
},
}SCSS
$custom: #2a4cb4; $custom-light: #797dcb; $custom-dark: #000000;
JSON
{
"hex": "#2a4cb4",
"rgb": {
"r": 42,
"g": 76,
"b": 180
},
"hsl": {
"h": 225.217,
"s": 62.162,
"l": 43.529
},
"oklch": {
"l": 0.45687,
"c": 0.16984,
"h": 266
},
"luminance": 0.08956
}Semantic roles & 50–950 ramp
primary
#2A4CB4
secondary
#C8B372
accent
#BD43E5
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0913
muted
#7C7B82