#2E51B3#2E51B3
#2E51B3 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.8% C 0.161 H 265.6°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).
Color values
| HEX | #2E51B3 |
|---|---|
| RGB | rgb(46, 81, 179) |
| HSL | hsl(224, 59%, 44%) |
| HSV | hsv(224, 74%, 70%) |
| CMYK | cmyk(74.3%, 54.7%, 0%, 29.8%) |
| CIE-LAB | lab(37.33, 22.35, -55.77) |
| CIE-LCH | lch(37.33, 60.08, 291.84°) |
| OKLab | oklab(46.79% -0.0123 -0.1607) |
| OKLCH | oklch(46.79% 0.161 265.6) |
| XYZ | xyz(12.2030, 9.7191, 43.8719) |
| Luminance | 0.0972 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.32
Cobalt
#0047AB
ΔE00 3.91
Blue Blue
#2242C7
ΔE00 5.61
Denim Blue
#3B5B92
ΔE00 5.65
Cobalt (survey)
#1E488F
ΔE00 5.80
Dusk Blue
#26538D
ΔE00 5.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E51B3 #B3902E
analogous
#2E94B3 #2E51B3 #4E2EB3
triadic
#2E51B3 #B32E51 #51B32E
tetradic
#2E51B3 #B32E94 #B3902E #2EB34E
square
#2E51B3 #B32E94 #B3902E #2EB34E
split-complementary
#2E51B3 #B34E2E #94B32E
monochromatic
#152552 #213B82 #2E51B3 #4D70D1 #7E97DE
Accessibility & contrast
On white
7.13
#2E51B3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.94
#2E51B3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E51B3
7.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E51B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E51B3 | 1.00 | 7.13 | 2.94 | 7.13 |
| #FFFFFF | 7.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EB6
Deuteranopia (green-blind)
#0052B1
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #2e51b3; /* rgb */ color: rgb(46, 81, 179); /* oklch */ color: oklch(46.8% 0.161 265.6);
Tailwind
colors: {
custom: {
50: '#7981ca',
500: '#2e51b3',
950: '#000000',
},
}SCSS
$custom: #2e51b3; $custom-light: #7981ca; $custom-dark: #000000;
JSON
{
"hex": "#2e51b3",
"rgb": {
"r": 46,
"g": 81,
"b": 179
},
"hsl": {
"h": 224.211,
"s": 59.111,
"l": 44.118
},
"oklch": {
"l": 0.46789,
"c": 0.16113,
"h": 265.6
},
"luminance": 0.0972
}Semantic roles & 50–950 ramp
primary
#2E51B3
secondary
#C6B176
accent
#B946E2
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82