#2E51AB#2E51AB
#2E51AB is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.2% C 0.150 H 265.0°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).
Color values
| HEX | #2E51AB |
|---|---|
| RGB | rgb(46, 81, 171) |
| HSL | hsl(223, 58%, 43%) |
| HSV | hsv(223, 73%, 67%) |
| CMYK | cmyk(73.1%, 52.6%, 0%, 32.9%) |
| CIE-LAB | lab(36.75, 19.32, -51.97) |
| CIE-LCH | lch(36.75, 55.45, 290.40°) |
| OKLab | oklab(46.17% -0.013 -0.1495) |
| OKLCH | oklch(46.17% 0.15 265) |
| XYZ | xyz(11.4172, 9.4048, 39.7338) |
| Luminance | 0.0941 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.58
Cobalt
#0047AB
ΔE00 3.65
Cobalt (survey)
#1E488F
ΔE00 4.85
Denim Blue
#3B5B92
ΔE00 4.88
Dusk Blue
#26538D
ΔE00 4.90
Light Navy Blue
#2E5A88
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E51AB #AB882E
analogous
#2E90AB #2E51AB #492EAB
triadic
#2E51AB #AB2E51 #51AB2E
tetradic
#2E51AB #AB2E90 #AB882E #2EAB49
square
#2E51AB #AB2E90 #AB882E #2EAB49
split-complementary
#2E51AB #AB492E #90AB2E
monochromatic
#14234B #213A7B #2E51AB #486ECE #7994DB
Accessibility & contrast
On white
7.29
#2E51AB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.88
#2E51AB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E51AB
7.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E51AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E51AB | 1.00 | 7.29 | 2.88 | 7.29 |
| #FFFFFF | 7.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#155CAE
Deuteranopia (green-blind)
#0051A9
Tritanopia (blue-blind)
#006776
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #2e51ab; /* rgb */ color: rgb(46, 81, 171); /* oklch */ color: oklch(46.2% 0.150 265.0);
Tailwind
colors: {
custom: {
50: '#7881c5',
500: '#2e51ab',
950: '#000000',
},
}SCSS
$custom: #2e51ab; $custom-light: #7881c5; $custom-dark: #000000;
JSON
{
"hex": "#2e51ab",
"rgb": {
"r": 46,
"g": 81,
"b": 171
},
"hsl": {
"h": 223.2,
"s": 57.604,
"l": 42.549
},
"oklch": {
"l": 0.46165,
"c": 0.15006,
"h": 265
},
"luminance": 0.09406
}Semantic roles & 50–950 ramp
primary
#2E51AB
secondary
#C3AC72
accent
#B647E1
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82