#2A52B4#2A52B4
#2A52B4 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.9% C 0.162 H 264.3°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).
Color values
| HEX | #2A52B4 |
|---|---|
| RGB | rgb(42, 82, 180) |
| HSL | hsl(223, 62%, 44%) |
| HSV | hsv(223, 77%, 71%) |
| CMYK | cmyk(76.7%, 54.4%, 0%, 29.4%) |
| CIE-LAB | lab(37.52, 21.59, -56.06) |
| CIE-LCH | lch(37.52, 60.07, 291.06°) |
| OKLab | oklab(46.91% -0.0162 -0.1616) |
| OKLCH | oklch(46.91% 0.162 264.3) |
| XYZ | xyz(12.2074, 9.8207, 44.4234) |
| Luminance | 0.0982 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.75
Cobalt
#0047AB
ΔE00 3.95
Denim Blue
#3B5B92
ΔE00 5.45
Dusk Blue
#26538D
ΔE00 5.60
Denim
#1560BD
ΔE00 5.73
Cobalt (survey)
#1E488F
ΔE00 5.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A52B4 #B48C2A
analogous
#2A97B4 #2A52B4 #472AB4
triadic
#2A52B4 #B42A52 #52B42A
tetradic
#2A52B4 #B42A97 #B48C2A #2AB447
square
#2A52B4 #B42A97 #B48C2A #2AB447
split-complementary
#2A52B4 #B4472A #97B42A
monochromatic
#132551 #1E3B82 #2A52B4 #4770D4 #7997E0
Accessibility & contrast
On white
7.08
#2A52B4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.96
#2A52B4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A52B4
7.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A52B4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A52B4 | 1.00 | 7.08 | 2.96 | 7.08 |
| #FFFFFF | 7.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FB7
Deuteranopia (green-blind)
#0052B2
Tritanopia (blue-blind)
#006A7B
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #2a52b4; /* rgb */ color: rgb(42, 82, 180); /* oklch */ color: oklch(46.9% 0.162 264.3);
Tailwind
colors: {
custom: {
50: '#7882cb',
500: '#2a52b4',
950: '#000000',
},
}SCSS
$custom: #2a52b4; $custom-light: #7882cb; $custom-dark: #000000;
JSON
{
"hex": "#2a52b4",
"rgb": {
"r": 42,
"g": 82,
"b": 180
},
"hsl": {
"h": 222.609,
"s": 62.162,
"l": 43.529
},
"oklch": {
"l": 0.46908,
"c": 0.1624,
"h": 264.3
},
"luminance": 0.09822
}Semantic roles & 50–950 ramp
primary
#2A52B4
secondary
#C8AF72
accent
#B643E5
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0A13
muted
#7C7C82