#2A52BC#2A52BC
#2A52BC is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.6% C 0.173 H 264.8°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).
Color values
| HEX | #2A52BC |
|---|---|
| RGB | rgb(42, 82, 188) |
| HSL | hsl(224, 63%, 45%) |
| HSV | hsv(224, 78%, 74%) |
| CMYK | cmyk(77.7%, 56.4%, 0%, 26.3%) |
| CIE-LAB | lab(38.12, 24.64, -59.78) |
| CIE-LCH | lch(38.12, 64.66, 292.40°) |
| OKLab | oklab(47.55% -0.0156 -0.1725) |
| OKLCH | oklch(47.55% 0.173 264.8) |
| XYZ | xyz(13.0460, 10.1562, 48.8400) |
| Luminance | 0.1016 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.06
Cobalt
#0047AB
ΔE00 4.49
Blue Blue
#2242C7
ΔE00 5.38
Denim
#1560BD
ΔE00 5.91
Denim Blue
#3B5B92
ΔE00 6.27
Blue (survey)
#0343DF
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A52BC #BC942A
analogous
#2A9BBC #2A52BC #4B2ABC
triadic
#2A52BC #BC2A52 #52BC2A
tetradic
#2A52BC #BC2A9B #BC942A #2ABC4B
square
#2A52BC #BC2A9B #BC942A #2ABC4B
split-complementary
#2A52BC #BC4B2A #9BBC2A
monochromatic
#142658 #1F3C8A #2A52BC #4C72D7 #7E9AE2
Accessibility & contrast
On white
6.93
#2A52BC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.03
#2A52BC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A52BC
6.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A52BC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A52BC | 1.00 | 6.93 | 3.03 | 6.93 |
| #FFFFFF | 6.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C0
Deuteranopia (green-blind)
#0053BA
Tritanopia (blue-blind)
#006C7F
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #2a52bc; /* rgb */ color: rgb(42, 82, 188); /* oklch */ color: oklch(47.6% 0.173 264.8);
Tailwind
colors: {
custom: {
50: '#7a82d1',
500: '#2a52bc',
950: '#000000',
},
}SCSS
$custom: #2a52bc; $custom-light: #7a82d1; $custom-dark: #000000;
JSON
{
"hex": "#2a52bc",
"rgb": {
"r": 42,
"g": 82,
"b": 188
},
"hsl": {
"h": 223.562,
"s": 63.478,
"l": 45.098
},
"oklch": {
"l": 0.47552,
"c": 0.17324,
"h": 264.8
},
"luminance": 0.10158
}Semantic roles & 50–950 ramp
primary
#2A52BC
secondary
#CBB477
accent
#B941E7
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82