#2A51AA#2A51AA
#2A51AA is a mid, vivid blue. Relative luminance 0.093; OKLCH L 45.9% C 0.150 H 263.7°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).
Color values
| HEX | #2A51AA |
|---|---|
| RGB | rgb(42, 81, 170) |
| HSL | hsl(222, 60%, 42%) |
| HSV | hsv(222, 75%, 67%) |
| CMYK | cmyk(75.3%, 52.4%, 0%, 33.3%) |
| CIE-LAB | lab(36.51, 18.41, -51.77) |
| CIE-LCH | lch(36.51, 54.94, 289.58°) |
| OKLab | oklab(45.92% -0.0164 -0.149) |
| OKLCH | oklch(45.92% 0.15 263.7) |
| XYZ | xyz(11.1504, 9.2781, 39.2256) |
| Luminance | 0.0928 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.34
Cobalt
#0047AB
ΔE00 3.44
Dusk Blue
#26538D
ΔE00 4.48
Cobalt (survey)
#1E488F
ΔE00 4.55
Denim Blue
#3B5B92
ΔE00 4.74
Light Navy Blue
#2E5A88
ΔE00 5.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A51AA #AA832A
analogous
#2A91AA #2A51AA #432AAA
triadic
#2A51AA #AA2A51 #51AA2A
tetradic
#2A51AA #AA2A91 #AA832A #2AAA43
square
#2A51AA #AA2A91 #AA832A #2AAA43
split-complementary
#2A51AA #AA432A #91AA2A
monochromatic
#122248 #1E3A79 #2A51AA #416DD0 #7292DC
Accessibility & contrast
On white
7.35
#2A51AA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.86
#2A51AA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A51AA
7.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A51AA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A51AA | 1.00 | 7.35 | 2.86 | 7.35 |
| #FFFFFF | 7.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#165CAD
Deuteranopia (green-blind)
#0050A8
Tritanopia (blue-blind)
#006675
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #2a51aa; /* rgb */ color: rgb(42, 81, 170); /* oklch */ color: oklch(45.9% 0.150 263.7);
Tailwind
colors: {
custom: {
50: '#7681c4',
500: '#2a51aa',
950: '#000000',
},
}SCSS
$custom: #2a51aa; $custom-light: #7681c4; $custom-dark: #000000;
JSON
{
"hex": "#2a51aa",
"rgb": {
"r": 42,
"g": 81,
"b": 170
},
"hsl": {
"h": 221.719,
"s": 60.377,
"l": 41.569
},
"oklch": {
"l": 0.45915,
"c": 0.14987,
"h": 263.7
},
"luminance": 0.09279
}Semantic roles & 50–950 ramp
primary
#2A51AA
secondary
#C3A96C
accent
#B344E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82