#2A52B2#2A52B2
#2A52B2 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.7% C 0.160 H 264.1°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).
Color values
| HEX | #2A52B2 |
|---|---|
| RGB | rgb(42, 82, 178) |
| HSL | hsl(222, 62%, 43%) |
| HSV | hsv(222, 76%, 70%) |
| CMYK | cmyk(76.4%, 53.9%, 0%, 30.2%) |
| CIE-LAB | lab(37.37, 20.82, -55.12) |
| CIE-LCH | lch(37.37, 58.92, 290.69°) |
| OKLab | oklab(46.75% -0.0164 -0.1588) |
| OKLCH | oklch(46.75% 0.16 264.1) |
| XYZ | xyz(12.0052, 9.7398, 43.3581) |
| Luminance | 0.0974 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.78
Cobalt
#0047AB
ΔE00 3.86
Denim Blue
#3B5B92
ΔE00 5.25
Dusk Blue
#26538D
ΔE00 5.35
Cobalt (survey)
#1E488F
ΔE00 5.58
Denim
#1560BD
ΔE00 5.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A52B2 #B28A2A
analogous
#2A96B2 #2A52B2 #462AB2
triadic
#2A52B2 #B22A52 #52B22A
tetradic
#2A52B2 #B22A96 #B28A2A #2AB246
square
#2A52B2 #B22A96 #B28A2A #2AB246
split-complementary
#2A52B2 #B2462A #96B22A
monochromatic
#13244F #1E3B80 #2A52B2 #466FD3 #7796DF
Accessibility & contrast
On white
7.12
#2A52B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.95
#2A52B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A52B2
7.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A52B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A52B2 | 1.00 | 7.12 | 2.95 | 7.12 |
| #FFFFFF | 7.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#045EB5
Deuteranopia (green-blind)
#0052B0
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #2a52b2; /* rgb */ color: rgb(42, 82, 178); /* oklch */ color: oklch(46.7% 0.160 264.1);
Tailwind
colors: {
custom: {
50: '#7882ca',
500: '#2a52b2',
950: '#000000',
},
}SCSS
$custom: #2a52b2; $custom-light: #7882ca; $custom-dark: #000000;
JSON
{
"hex": "#2a52b2",
"rgb": {
"r": 42,
"g": 82,
"b": 178
},
"hsl": {
"h": 222.353,
"s": 61.818,
"l": 43.137
},
"oklch": {
"l": 0.46749,
"c": 0.15966,
"h": 264.1
},
"luminance": 0.09741
}Semantic roles & 50–950 ramp
primary
#2A52B2
secondary
#C7AE71
accent
#B543E5
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82