#2A51AB#2A51AB
#2A51AB is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.0% C 0.151 H 263.8°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).
Color values
| HEX | #2A51AB |
|---|---|
| RGB | rgb(42, 81, 171) |
| HSL | hsl(222, 61%, 42%) |
| HSV | hsv(222, 75%, 67%) |
| CMYK | cmyk(75.4%, 52.6%, 0%, 32.9%) |
| CIE-LAB | lab(36.59, 18.80, -52.25) |
| CIE-LCH | lch(36.59, 55.52, 289.79°) |
| OKLab | oklab(45.99% -0.0163 -0.1504) |
| OKLCH | oklch(45.99% 0.151 263.8) |
| XYZ | xyz(11.2453, 9.3161, 39.7257) |
| Luminance | 0.0932 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.26
Cobalt
#0047AB
ΔE00 3.44
Dusk Blue
#26538D
ΔE00 4.60
Cobalt (survey)
#1E488F
ΔE00 4.66
Denim Blue
#3B5B92
ΔE00 4.82
Light Navy Blue
#2E5A88
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A51AB #AB842A
analogous
#2A92AB #2A51AB #432AAB
triadic
#2A51AB #AB2A51 #51AB2A
tetradic
#2A51AB #AB2A92 #AB842A #2AAB43
square
#2A51AB #AB2A92 #AB842A #2AAB43
split-complementary
#2A51AB #AB432A #92AB2A
monochromatic
#122249 #1E3A7A #2A51AB #426DD1 #7393DD
Accessibility & contrast
On white
7.33
#2A51AB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.86
#2A51AB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A51AB
7.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A51AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A51AB | 1.00 | 7.33 | 2.86 | 7.33 |
| #FFFFFF | 7.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#135CAE
Deuteranopia (green-blind)
#0050A9
Tritanopia (blue-blind)
#006776
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #2a51ab; /* rgb */ color: rgb(42, 81, 171); /* oklch */ color: oklch(46.0% 0.151 263.8);
Tailwind
colors: {
custom: {
50: '#7681c5',
500: '#2a51ab',
950: '#000000',
},
}SCSS
$custom: #2a51ab; $custom-light: #7681c5; $custom-dark: #000000;
JSON
{
"hex": "#2a51ab",
"rgb": {
"r": 42,
"g": 81,
"b": 171
},
"hsl": {
"h": 221.86,
"s": 60.563,
"l": 41.765
},
"oklch": {
"l": 0.45993,
"c": 0.15126,
"h": 263.8
},
"luminance": 0.09317
}Semantic roles & 50–950 ramp
primary
#2A51AB
secondary
#C4AA6D
accent
#B344E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82