#2A51B2#2A51B2
#2A51B2 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.5% C 0.161 H 264.4°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).
Color values
| HEX | #2A51B2 |
|---|---|
| RGB | rgb(42, 81, 178) |
| HSL | hsl(223, 62%, 43%) |
| HSV | hsv(223, 76%, 70%) |
| CMYK | cmyk(76.4%, 54.5%, 0%, 30.2%) |
| CIE-LAB | lab(37.10, 21.48, -55.57) |
| CIE-LCH | lch(37.10, 59.58, 291.14°) |
| OKLab | oklab(46.54% -0.0156 -0.1601) |
| OKLCH | oklch(46.54% 0.161 264.4) |
| XYZ | xyz(11.9303, 9.5901, 43.3332) |
| Luminance | 0.0959 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.92
Cobalt
#0047AB
ΔE00 3.63
Denim Blue
#3B5B92
ΔE00 5.47
Dusk Blue
#26538D
ΔE00 5.48
Cobalt (survey)
#1E488F
ΔE00 5.49
Blue Blue
#2242C7
ΔE00 5.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A51B2 #B28B2A
analogous
#2A95B2 #2A51B2 #472AB2
triadic
#2A51B2 #B22A51 #51B22A
tetradic
#2A51B2 #B22A95 #B28B2A #2AB247
square
#2A51B2 #B22A95 #B28B2A #2AB247
split-complementary
#2A51B2 #B2472A #95B22A
monochromatic
#13244F #1E3A80 #2A51B2 #466ED3 #7795DF
Accessibility & contrast
On white
7.20
#2A51B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.92
#2A51B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A51B2
7.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A51B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A51B2 | 1.00 | 7.20 | 2.92 | 7.20 |
| #FFFFFF | 7.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EB5
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#006979
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #2a51b2; /* rgb */ color: rgb(42, 81, 178); /* oklch */ color: oklch(46.5% 0.161 264.4);
Tailwind
colors: {
custom: {
50: '#7881ca',
500: '#2a51b2',
950: '#000000',
},
}SCSS
$custom: #2a51b2; $custom-light: #7881ca; $custom-dark: #000000;
JSON
{
"hex": "#2a51b2",
"rgb": {
"r": 42,
"g": 81,
"b": 178
},
"hsl": {
"h": 222.794,
"s": 61.818,
"l": 43.137
},
"oklch": {
"l": 0.46541,
"c": 0.16091,
"h": 264.4
},
"luminance": 0.09591
}Semantic roles & 50–950 ramp
primary
#2A51B2
secondary
#C7AE71
accent
#B643E5
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82