#2A5EAB#2A5EAB
#2A5EAB is a mid, vivid blue. Relative luminance 0.114; OKLCH L 48.8% C 0.135 H 258.4°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).
Color values
| HEX | #2A5EAB |
|---|---|
| RGB | rgb(42, 94, 171) |
| HSL | hsl(216, 61%, 42%) |
| HSV | hsv(216, 75%, 67%) |
| CMYK | cmyk(75.4%, 45%, 0%, 32.9%) |
| CIE-LAB | lab(40.31, 10.25, -46.25) |
| CIE-LCH | lch(40.31, 47.38, 282.49°) |
| OKLab | oklab(48.84% -0.0273 -0.1325) |
| OKLCH | oklch(48.84% 0.135 258.4) |
| XYZ | xyz(12.3056, 11.4365, 40.0791) |
| Luminance | 0.1144 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Denim
#1560BD
ΔE00 2.20
Denim Blue
#3B5B92
ΔE00 3.76
Denim (survey)
#3B638C
ΔE00 4.25
Light Navy Blue
#2E5A88
ΔE00 4.35
Sapphire
#0F52BA
ΔE00 4.48
Mid Blue
#276AB3
ΔE00 4.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A5EAB #AB772A
analogous
#2A9FAB #2A5EAB #372AAB
triadic
#2A5EAB #AB2A5E #5EAB2A
tetradic
#2A5EAB #AB2A9F #AB772A #2AAB37
square
#2A5EAB #AB2A9F #AB772A #2AAB37
split-complementary
#2A5EAB #AB372A #9FAB2A
monochromatic
#122849 #1E437A #2A5EAB #427BD1 #739DDD
Accessibility & contrast
On white
6.39
#2A5EAB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.29
#2A5EAB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A5EAB
6.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A5EAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A5EAB | 1.00 | 6.39 | 3.29 | 6.39 |
| #FFFFFF | 6.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3765AE
Deuteranopia (green-blind)
#1D5AA9
Tritanopia (blue-blind)
#00707C
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #2a5eab; /* rgb */ color: rgb(42, 94, 171); /* oklch */ color: oklch(48.8% 0.135 258.4);
Tailwind
colors: {
custom: {
50: '#768bc4',
500: '#2a5eab',
950: '#000000',
},
}SCSS
$custom: #2a5eab; $custom-light: #768bc4; $custom-dark: #000000;
JSON
{
"hex": "#2a5eab",
"rgb": {
"r": 42,
"g": 94,
"b": 171
},
"hsl": {
"h": 215.814,
"s": 60.563,
"l": 41.765
},
"oklch": {
"l": 0.48844,
"c": 0.13529,
"h": 258.4
},
"luminance": 0.11438
}Semantic roles & 50–950 ramp
primary
#2A5EAB
secondary
#C4A16D
accent
#A344E4
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82