#2E51BC#2E51BC
#2E51BC is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.5% C 0.173 H 266.1°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).
Color values
| HEX | #2E51BC |
|---|---|
| RGB | rgb(46, 81, 188) |
| HSL | hsl(225, 61%, 46%) |
| HSV | hsv(225, 76%, 74%) |
| CMYK | cmyk(75.5%, 56.9%, 0%, 26.3%) |
| CIE-LAB | lab(38.01, 25.74, -59.95) |
| CIE-LCH | lch(38.01, 65.25, 293.24°) |
| OKLab | oklab(47.51% -0.0118 -0.173) |
| OKLCH | oklch(47.51% 0.173 266.1) |
| XYZ | xyz(13.1431, 10.0951, 48.8231) |
| Luminance | 0.1010 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.63
Cobalt
#0047AB
ΔE00 4.56
Blue Blue
#2242C7
ΔE00 4.93
Blue (survey)
#0343DF
ΔE00 5.96
Warm Blue
#4B57DB
ΔE00 6.09
Denim
#1560BD
ΔE00 6.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E51BC #BC992E
analogous
#2E98BC #2E51BC #522EBC
triadic
#2E51BC #BC2E51 #51BC2E
tetradic
#2E51BC #BC2E98 #BC992E #2EBC52
square
#2E51BC #BC2E98 #BC992E #2EBC52
split-complementary
#2E51BC #BC522E #98BC2E
monochromatic
#16275A #223C8B #2E51BC #5273D5 #849BE1
Accessibility & contrast
On white
6.96
#2E51BC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.02
#2E51BC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2E51BC
6.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E51BC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E51BC | 1.00 | 6.96 | 3.02 | 6.96 |
| #FFFFFF | 6.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060C0
Deuteranopia (green-blind)
#0053BA
Tritanopia (blue-blind)
#006C7E
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #2e51bc; /* rgb */ color: rgb(46, 81, 188); /* oklch */ color: oklch(47.5% 0.173 266.1);
Tailwind
colors: {
custom: {
50: '#7b81d1',
500: '#2e51bc',
950: '#000000',
},
}SCSS
$custom: #2e51bc; $custom-light: #7b81d1; $custom-dark: #000000;
JSON
{
"hex": "#2e51bc",
"rgb": {
"r": 46,
"g": 81,
"b": 188
},
"hsl": {
"h": 225.211,
"s": 60.684,
"l": 45.882
},
"oklch": {
"l": 0.47514,
"c": 0.17338,
"h": 266.1
},
"luminance": 0.10097
}Semantic roles & 50–950 ramp
primary
#2E51BC
secondary
#CAB77C
accent
#BC44E4
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82