#2A51B7#2A51B7
#2A51B7 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.9% C 0.168 H 264.8°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).
Color values
| HEX | #2A51B7 |
|---|---|
| RGB | rgb(42, 81, 183) |
| HSL | hsl(223, 63%, 44%) |
| HSV | hsv(223, 77%, 72%) |
| CMYK | cmyk(77%, 55.7%, 0%, 28.2%) |
| CIE-LAB | lab(37.47, 23.39, -57.91) |
| CIE-LCH | lch(37.47, 62.45, 292.00°) |
| OKLab | oklab(46.94% -0.0153 -0.167) |
| OKLCH | oklch(46.94% 0.168 264.8) |
| XYZ | xyz(12.4415, 9.7946, 46.0254) |
| Luminance | 0.0980 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.96
Cobalt
#0047AB
ΔE00 3.93
Blue Blue
#2242C7
ΔE00 5.41
Denim Blue
#3B5B92
ΔE00 5.96
Dusk Blue
#26538D
ΔE00 6.11
Cobalt (survey)
#1E488F
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A51B7 #B7902A
analogous
#2A98B7 #2A51B7 #492AB7
triadic
#2A51B7 #B72A51 #51B72A
tetradic
#2A51B7 #B72A98 #B7902A #2AB749
square
#2A51B7 #B72A98 #B7902A #2AB749
split-complementary
#2A51B7 #B7492A #98B72A
monochromatic
#132553 #1F3B85 #2A51B7 #4970D5 #7B97E1
Accessibility & contrast
On white
7.10
#2A51B7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.96
#2A51B7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A51B7
7.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A51B7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A51B7 | 1.00 | 7.10 | 2.96 | 7.10 |
| #FFFFFF | 7.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FBB
Deuteranopia (green-blind)
#0052B5
Tritanopia (blue-blind)
#006A7C
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #2a51b7; /* rgb */ color: rgb(42, 81, 183); /* oklch */ color: oklch(46.9% 0.168 264.8);
Tailwind
colors: {
custom: {
50: '#7981cd',
500: '#2a51b7',
950: '#000000',
},
}SCSS
$custom: #2a51b7; $custom-light: #7981cd; $custom-dark: #000000;
JSON
{
"hex": "#2a51b7",
"rgb": {
"r": 42,
"g": 81,
"b": 183
},
"hsl": {
"h": 223.404,
"s": 62.667,
"l": 44.118
},
"oklch": {
"l": 0.46942,
"c": 0.16773,
"h": 264.8
},
"luminance": 0.09796
}Semantic roles & 50–950 ramp
primary
#2A51B7
secondary
#C9B174
accent
#B842E6
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0A14
muted
#7C7C82