#2A52AB#2A52AB
#2A52AB is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.2% C 0.150 H 263.5°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).
Color values
| HEX | #2A52AB |
|---|---|
| RGB | rgb(42, 82, 171) |
| HSL | hsl(221, 61%, 42%) |
| HSV | hsv(221, 75%, 67%) |
| CMYK | cmyk(75.4%, 52%, 0%, 32.9%) |
| CIE-LAB | lab(36.87, 18.13, -51.79) |
| CIE-LCH | lch(36.87, 54.88, 289.30°) |
| OKLab | oklab(46.21% -0.0171 -0.149) |
| OKLCH | oklch(46.21% 0.15 263.5) |
| XYZ | xyz(11.3202, 9.4658, 39.7507) |
| Luminance | 0.0947 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.17
Cobalt
#0047AB
ΔE00 3.70
Dusk Blue
#26538D
ΔE00 4.45
Denim Blue
#3B5B92
ΔE00 4.58
Cobalt (survey)
#1E488F
ΔE00 4.79
Light Navy Blue
#2E5A88
ΔE00 5.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A52AB #AB832A
analogous
#2A93AB #2A52AB #422AAB
triadic
#2A52AB #AB2A52 #52AB2A
tetradic
#2A52AB #AB2A93 #AB832A #2AAB42
square
#2A52AB #AB2A93 #AB832A #2AAB42
split-complementary
#2A52AB #AB422A #93AB2A
monochromatic
#122349 #1E3A7A #2A52AB #426ED1 #7394DD
Accessibility & contrast
On white
7.26
#2A52AB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.89
#2A52AB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A52AB
7.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A52AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A52AB | 1.00 | 7.26 | 2.89 | 7.26 |
| #FFFFFF | 7.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#185DAE
Deuteranopia (green-blind)
#0051A9
Tritanopia (blue-blind)
#006776
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #2a52ab; /* rgb */ color: rgb(42, 82, 171); /* oklch */ color: oklch(46.2% 0.150 263.5);
Tailwind
colors: {
custom: {
50: '#7682c5',
500: '#2a52ab',
950: '#000000',
},
}SCSS
$custom: #2a52ab; $custom-light: #7682c5; $custom-dark: #000000;
JSON
{
"hex": "#2a52ab",
"rgb": {
"r": 42,
"g": 82,
"b": 171
},
"hsl": {
"h": 221.395,
"s": 60.563,
"l": 41.765
},
"oklch": {
"l": 0.46206,
"c": 0.15001,
"h": 263.5
},
"luminance": 0.09467
}Semantic roles & 50–950 ramp
primary
#2A52AB
secondary
#C4A96D
accent
#B244E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82