#2A5AB7#2A5AB7
#2A5AB7 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.8% C 0.157 H 261.9°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).
Color values
| HEX | #2A5AB7 |
|---|---|
| RGB | rgb(42, 90, 183) |
| HSL | hsl(220, 63%, 44%) |
| HSV | hsv(220, 77%, 72%) |
| CMYK | cmyk(77%, 50.8%, 0%, 28.2%) |
| CIE-LAB | lab(39.95, 17.46, -53.89) |
| CIE-LCH | lch(39.95, 56.65, 287.96°) |
| OKLab | oklab(48.83% -0.0221 -0.155) |
| OKLCH | oklch(48.83% 0.157 261.9) |
| XYZ | xyz(13.1552, 11.2220, 46.2633) |
| Luminance | 0.1122 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.72
Denim
#1560BD
ΔE00 3.05
Denim Blue
#3B5B92
ΔE00 4.70
Dusk Blue
#26538D
ΔE00 5.69
Dusky Blue
#475F94
ΔE00 5.76
Light Navy Blue
#2E5A88
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A5AB7 #B7872A
analogous
#2AA1B7 #2A5AB7 #402AB7
triadic
#2A5AB7 #B72A5A #5AB72A
tetradic
#2A5AB7 #B72AA1 #B7872A #2AB740
square
#2A5AB7 #B72AA1 #B7872A #2AB740
split-complementary
#2A5AB7 #B7402A #A1B72A
monochromatic
#132953 #1F4285 #2A5AB7 #4979D5 #7B9DE1
Accessibility & contrast
On white
6.47
#2A5AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.24
#2A5AB7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A5AB7
6.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A5AB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A5AB7 | 1.00 | 6.47 | 3.24 | 6.47 |
| #FFFFFF | 6.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2065BA
Deuteranopia (green-blind)
#0058B5
Tritanopia (blue-blind)
#007080
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #2a5ab7; /* rgb */ color: rgb(42, 90, 183); /* oklch */ color: oklch(48.8% 0.157 261.9);
Tailwind
colors: {
custom: {
50: '#7888cd',
500: '#2a5ab7',
950: '#000000',
},
}SCSS
$custom: #2a5ab7; $custom-light: #7888cd; $custom-dark: #000000;
JSON
{
"hex": "#2a5ab7",
"rgb": {
"r": 42,
"g": 90,
"b": 183
},
"hsl": {
"h": 219.574,
"s": 62.667,
"l": 44.118
},
"oklch": {
"l": 0.48825,
"c": 0.1566,
"h": 261.9
},
"luminance": 0.11223
}Semantic roles & 50–950 ramp
primary
#2A5AB7
secondary
#C9AC74
accent
#AE42E6
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B13
muted
#7C7C82