#2A4DAB#2A4DAB
#2A4DAB is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.2% C 0.156 H 265.2°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).
Color values
| HEX | #2A4DAB |
|---|---|
| RGB | rgb(42, 77, 171) |
| HSL | hsl(224, 61%, 42%) |
| HSV | hsv(224, 75%, 67%) |
| CMYK | cmyk(75.4%, 55%, 0%, 32.9%) |
| CIE-LAB | lab(35.48, 21.46, -54.04) |
| CIE-LCH | lch(35.48, 58.15, 291.66°) |
| OKLab | oklab(45.15% -0.0131 -0.1557) |
| OKLCH | oklch(45.15% 0.156 265.2) |
| XYZ | xyz(10.9568, 8.7391, 39.6295) |
| Luminance | 0.0874 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.67
Sapphire
#0F52BA
ΔE00 3.03
Cobalt (survey)
#1E488F
ΔE00 4.43
Dusk Blue
#26538D
ΔE00 5.40
Blue Blue
#2242C7
ΔE00 5.48
Denim Blue
#3B5B92
ΔE00 5.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A4DAB #AB882A
analogous
#2A8EAB #2A4DAB #482AAB
triadic
#2A4DAB #AB2A4D #4DAB2A
tetradic
#2A4DAB #AB2A8E #AB882A #2AAB48
square
#2A4DAB #AB2A8E #AB882A #2AAB48
split-complementary
#2A4DAB #AB482A #8EAB2A
monochromatic
#122149 #1E377A #2A4DAB #4268D1 #7390DD
Accessibility & contrast
On white
7.64
#2A4DAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.75
#2A4DAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A4DAB
7.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A4DAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A4DAB | 1.00 | 7.64 | 2.75 | 7.64 |
| #FFFFFF | 7.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AAE
Deuteranopia (green-blind)
#004EA9
Tritanopia (blue-blind)
#006474
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #2a4dab; /* rgb */ color: rgb(42, 77, 171); /* oklch */ color: oklch(45.2% 0.156 265.2);
Tailwind
colors: {
custom: {
50: '#767ec5',
500: '#2a4dab',
950: '#000000',
},
}SCSS
$custom: #2a4dab; $custom-light: #767ec5; $custom-dark: #000000;
JSON
{
"hex": "#2a4dab",
"rgb": {
"r": 42,
"g": 77,
"b": 171
},
"hsl": {
"h": 223.721,
"s": 60.563,
"l": 41.765
},
"oklch": {
"l": 0.45152,
"c": 0.15628,
"h": 265.2
},
"luminance": 0.0874
}Semantic roles & 50–950 ramp
primary
#2A4DAB
secondary
#C4AC6D
accent
#B844E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82