#2E51B6#2E51B6
#2E51B6 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.0% C 0.165 H 265.8°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).
Color values
| HEX | #2E51B6 |
|---|---|
| RGB | rgb(46, 81, 182) |
| HSL | hsl(225, 60%, 45%) |
| HSV | hsv(225, 75%, 71%) |
| CMYK | cmyk(74.7%, 55.5%, 0%, 28.6%) |
| CIE-LAB | lab(37.56, 23.49, -57.17) |
| CIE-LCH | lch(37.56, 61.81, 292.33°) |
| OKLab | oklab(47.03% -0.0121 -0.1648) |
| OKLCH | oklch(47.03% 0.165 265.8) |
| XYZ | xyz(12.5097, 9.8417, 45.4873) |
| Luminance | 0.0984 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.36
Cobalt
#0047AB
ΔE00 4.09
Blue Blue
#2242C7
ΔE00 5.35
Denim Blue
#3B5B92
ΔE00 5.95
Cobalt (survey)
#1E488F
ΔE00 6.18
Dusk Blue
#26538D
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E51B6 #B6932E
analogous
#2E95B6 #2E51B6 #4F2EB6
triadic
#2E51B6 #B62E51 #51B62E
tetradic
#2E51B6 #B62E95 #B6932E #2EB64F
square
#2E51B6 #B62E95 #B6932E #2EB64F
split-complementary
#2E51B6 #B64F2E #95B62E
monochromatic
#152654 #223B85 #2E51B6 #4F71D2 #8098DF
Accessibility & contrast
On white
7.07
#2E51B6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.97
#2E51B6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E51B6
7.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E51B6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E51B6 | 1.00 | 7.07 | 2.97 | 7.07 |
| #FFFFFF | 7.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FB9
Deuteranopia (green-blind)
#0052B4
Tritanopia (blue-blind)
#006A7B
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #2e51b6; /* rgb */ color: rgb(46, 81, 182); /* oklch */ color: oklch(47.0% 0.165 265.8);
Tailwind
colors: {
custom: {
50: '#7a81cd',
500: '#2e51b6',
950: '#000000',
},
}SCSS
$custom: #2e51b6; $custom-light: #7a81cd; $custom-dark: #000000;
JSON
{
"hex": "#2e51b6",
"rgb": {
"r": 46,
"g": 81,
"b": 182
},
"hsl": {
"h": 224.559,
"s": 59.649,
"l": 44.706
},
"oklch": {
"l": 0.47028,
"c": 0.16524,
"h": 265.8
},
"luminance": 0.09843
}Semantic roles & 50–950 ramp
primary
#2E51B6
secondary
#C8B378
accent
#BA45E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82