#2A52B6#2A52B6
#2A52B6 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.1% C 0.165 H 264.4°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).
Color values
| HEX | #2A52B6 |
|---|---|
| RGB | rgb(42, 82, 182) |
| HSL | hsl(223, 63%, 44%) |
| HSV | hsv(223, 77%, 71%) |
| CMYK | cmyk(76.9%, 54.9%, 0%, 28.6%) |
| CIE-LAB | lab(37.67, 22.35, -57.00) |
| CIE-LCH | lch(37.67, 61.22, 291.41°) |
| OKLab | oklab(47.07% -0.0161 -0.1643) |
| OKLCH | oklch(47.07% 0.165 264.4) |
| XYZ | xyz(12.4126, 9.9028, 45.5041) |
| Luminance | 0.0990 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.77
Cobalt
#0047AB
ΔE00 4.06
Denim Blue
#3B5B92
ΔE00 5.65
Denim
#1560BD
ΔE00 5.76
Blue Blue
#2242C7
ΔE00 5.82
Dusk Blue
#26538D
ΔE00 5.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A52B6 #B68E2A
analogous
#2A98B6 #2A52B6 #482AB6
triadic
#2A52B6 #B62A52 #52B62A
tetradic
#2A52B6 #B62A98 #B68E2A #2AB648
square
#2A52B6 #B62A98 #B68E2A #2AB648
split-complementary
#2A52B6 #B6482A #98B62A
monochromatic
#132553 #1F3C84 #2A52B6 #4870D5 #7A97E0
Accessibility & contrast
On white
7.05
#2A52B6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.98
#2A52B6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A52B6
7.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A52B6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A52B6 | 1.00 | 7.05 | 2.98 | 7.05 |
| #FFFFFF | 7.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FB9
Deuteranopia (green-blind)
#0052B4
Tritanopia (blue-blind)
#006B7C
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #2a52b6; /* rgb */ color: rgb(42, 82, 182); /* oklch */ color: oklch(47.1% 0.165 264.4);
Tailwind
colors: {
custom: {
50: '#7982cd',
500: '#2a52b6',
950: '#000000',
},
}SCSS
$custom: #2a52b6; $custom-light: #7982cd; $custom-dark: #000000;
JSON
{
"hex": "#2a52b6",
"rgb": {
"r": 42,
"g": 82,
"b": 182
},
"hsl": {
"h": 222.857,
"s": 62.5,
"l": 43.922
},
"oklch": {
"l": 0.47067,
"c": 0.16512,
"h": 264.4
},
"luminance": 0.09904
}Semantic roles & 50–950 ramp
primary
#2A52B6
secondary
#C8B073
accent
#B742E6
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0A13
muted
#7C7C82