#2A4EAB#2A4EAB
#2A4EAB is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.4% C 0.155 H 264.9°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).
Color values
| HEX | #2A4EAB |
|---|---|
| RGB | rgb(42, 78, 171) |
| HSL | hsl(223, 61%, 42%) |
| HSV | hsv(223, 75%, 67%) |
| CMYK | cmyk(75.4%, 54.4%, 0%, 32.9%) |
| CIE-LAB | lab(35.75, 20.79, -53.60) |
| CIE-LCH | lch(35.75, 57.49, 291.20°) |
| OKLab | oklab(45.36% -0.0139 -0.1544) |
| OKLCH | oklch(45.36% 0.155 264.9) |
| XYZ | xyz(11.0273, 8.8801, 39.6530) |
| Luminance | 0.0888 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.79
Cobalt
#0047AB
ΔE00 2.81
Cobalt (survey)
#1E488F
ΔE00 4.44
Dusk Blue
#26538D
ΔE00 5.18
Denim Blue
#3B5B92
ΔE00 5.62
Blue Blue
#2242C7
ΔE00 5.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A4EAB #AB872A
analogous
#2A8FAB #2A4EAB #472AAB
triadic
#2A4EAB #AB2A4E #4EAB2A
tetradic
#2A4EAB #AB2A8F #AB872A #2AAB47
square
#2A4EAB #AB2A8F #AB872A #2AAB47
split-complementary
#2A4EAB #AB472A #8FAB2A
monochromatic
#122149 #1E387A #2A4EAB #426AD1 #7390DD
Accessibility & contrast
On white
7.56
#2A4EAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.78
#2A4EAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A4EAB
7.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A4EAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A4EAB | 1.00 | 7.56 | 2.78 | 7.56 |
| #FFFFFF | 7.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#015AAE
Deuteranopia (green-blind)
#004EA9
Tritanopia (blue-blind)
#006575
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #2a4eab; /* rgb */ color: rgb(42, 78, 171); /* oklch */ color: oklch(45.4% 0.155 264.9);
Tailwind
colors: {
custom: {
50: '#767fc5',
500: '#2a4eab',
950: '#000000',
},
}SCSS
$custom: #2a4eab; $custom-light: #767fc5; $custom-dark: #000000;
JSON
{
"hex": "#2a4eab",
"rgb": {
"r": 42,
"g": 78,
"b": 171
},
"hsl": {
"h": 223.256,
"s": 60.563,
"l": 41.765
},
"oklch": {
"l": 0.45361,
"c": 0.15503,
"h": 264.9
},
"luminance": 0.08881
}Semantic roles & 50–950 ramp
primary
#2A4EAB
secondary
#C4AC6D
accent
#B744E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82