#2A52B5#2A52B5
#2A52B5 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.0% C 0.164 H 264.3°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).
Color values
| HEX | #2A52B5 |
|---|---|
| RGB | rgb(42, 82, 181) |
| HSL | hsl(223, 62%, 44%) |
| HSV | hsv(223, 77%, 71%) |
| CMYK | cmyk(76.8%, 54.7%, 0%, 29%) |
| CIE-LAB | lab(37.59, 21.97, -56.53) |
| CIE-LCH | lch(37.59, 60.65, 291.24°) |
| OKLab | oklab(46.99% -0.0161 -0.163) |
| OKLCH | oklch(46.99% 0.164 264.3) |
| XYZ | xyz(12.3097, 9.8616, 44.9618) |
| Luminance | 0.0986 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.76
Cobalt
#0047AB
ΔE00 4.00
Denim Blue
#3B5B92
ΔE00 5.55
Dusk Blue
#26538D
ΔE00 5.73
Denim
#1560BD
ΔE00 5.75
Blue Blue
#2242C7
ΔE00 5.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A52B5 #B58D2A
analogous
#2A97B5 #2A52B5 #472AB5
triadic
#2A52B5 #B52A52 #52B52A
tetradic
#2A52B5 #B52A97 #B58D2A #2AB547
square
#2A52B5 #B52A97 #B58D2A #2AB547
split-complementary
#2A52B5 #B5472A #97B52A
monochromatic
#132552 #1E3B83 #2A52B5 #4870D4 #7997E0
Accessibility & contrast
On white
7.06
#2A52B5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.97
#2A52B5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A52B5
7.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A52B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A52B5 | 1.00 | 7.06 | 2.97 | 7.06 |
| #FFFFFF | 7.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FB8
Deuteranopia (green-blind)
#0052B3
Tritanopia (blue-blind)
#006A7B
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #2a52b5; /* rgb */ color: rgb(42, 82, 181); /* oklch */ color: oklch(47.0% 0.164 264.3);
Tailwind
colors: {
custom: {
50: '#7882cc',
500: '#2a52b5',
950: '#000000',
},
}SCSS
$custom: #2a52b5; $custom-light: #7882cc; $custom-dark: #000000;
JSON
{
"hex": "#2a52b5",
"rgb": {
"r": 42,
"g": 82,
"b": 181
},
"hsl": {
"h": 222.734,
"s": 62.332,
"l": 43.725
},
"oklch": {
"l": 0.46987,
"c": 0.16377,
"h": 264.3
},
"luminance": 0.09863
}Semantic roles & 50–950 ramp
primary
#2A52B5
secondary
#C8AF73
accent
#B642E5
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0A13
muted
#7C7C82