#2A51B9#2A51B9
#2A51B9 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.1% C 0.170 H 264.9°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).
Color values
| HEX | #2A51B9 |
|---|---|
| RGB | rgb(42, 81, 185) |
| HSL | hsl(224, 63%, 45%) |
| HSV | hsv(224, 77%, 73%) |
| CMYK | cmyk(77.3%, 56.2%, 0%, 27.5%) |
| CIE-LAB | lab(37.62, 24.15, -58.84) |
| CIE-LCH | lch(37.62, 63.60, 292.32°) |
| OKLab | oklab(47.11% -0.0151 -0.1698) |
| OKLCH | oklch(47.11% 0.17 264.9) |
| XYZ | xyz(12.6511, 9.8784, 47.1295) |
| Luminance | 0.0988 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.04
Cobalt
#0047AB
ΔE00 4.08
Blue Blue
#2242C7
ΔE00 5.26
Denim
#1560BD
ΔE00 6.16
Denim Blue
#3B5B92
ΔE00 6.17
Dusk Blue
#26538D
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A51B9 #B9922A
analogous
#2A99B9 #2A51B9 #4A2AB9
triadic
#2A51B9 #B92A51 #51B92A
tetradic
#2A51B9 #B92A99 #B9922A #2AB94A
square
#2A51B9 #B92A99 #B9922A #2AB94A
split-complementary
#2A51B9 #B94A2A #99B92A
monochromatic
#132555 #1F3B87 #2A51B9 #4A70D6 #7C98E1
Accessibility & contrast
On white
7.06
#2A51B9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.98
#2A51B9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A51B9
7.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A51B9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A51B9 | 1.00 | 7.06 | 2.98 | 7.06 |
| #FFFFFF | 7.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FBD
Deuteranopia (green-blind)
#0052B7
Tritanopia (blue-blind)
#006B7D
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #2a51b9; /* rgb */ color: rgb(42, 81, 185); /* oklch */ color: oklch(47.1% 0.170 264.9);
Tailwind
colors: {
custom: {
50: '#7981cf',
500: '#2a51b9',
950: '#000000',
},
}SCSS
$custom: #2a51b9; $custom-light: #7981cf; $custom-dark: #000000;
JSON
{
"hex": "#2a51b9",
"rgb": {
"r": 42,
"g": 81,
"b": 185
},
"hsl": {
"h": 223.636,
"s": 62.996,
"l": 44.51
},
"oklch": {
"l": 0.47105,
"c": 0.17043,
"h": 264.9
},
"luminance": 0.0988
}Semantic roles & 50–950 ramp
primary
#2A51B9
secondary
#CAB375
accent
#B942E6
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82