#2E51BA#2E51BA
#2E51BA is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.4% C 0.171 H 266.0°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).
Color values
| HEX | #2E51BA |
|---|---|
| RGB | rgb(46, 81, 186) |
| HSL | hsl(225, 60%, 45%) |
| HSV | hsv(225, 75%, 73%) |
| CMYK | cmyk(75.3%, 56.5%, 0%, 27.1%) |
| CIE-LAB | lab(37.86, 24.99, -59.03) |
| CIE-LCH | lch(37.86, 64.10, 292.95°) |
| OKLab | oklab(47.35% -0.0119 -0.1703) |
| OKLCH | oklch(47.35% 0.171 266) |
| XYZ | xyz(12.9290, 10.0095, 47.6955) |
| Luminance | 0.1001 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.51
Cobalt
#0047AB
ΔE00 4.39
Blue Blue
#2242C7
ΔE00 5.06
Blue (survey)
#0343DF
ΔE00 6.17
Warm Blue
#4B57DB
ΔE00 6.33
Denim Blue
#3B5B92
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E51BA #BA972E
analogous
#2E97BA #2E51BA #512EBA
triadic
#2E51BA #BA2E51 #51BA2E
tetradic
#2E51BA #BA2E97 #BA972E #2EBA51
square
#2E51BA #BA2E97 #BA972E #2EBA51
split-complementary
#2E51BA #BA512E #97BA2E
monochromatic
#162658 #223C89 #2E51BA #5172D4 #829AE0
Accessibility & contrast
On white
6.99
#2E51BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.00
#2E51BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2E51BA
6.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E51BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E51BA | 1.00 | 6.99 | 3.00 | 6.99 |
| #FFFFFF | 6.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#0053B8
Tritanopia (blue-blind)
#006B7D
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #2e51ba; /* rgb */ color: rgb(46, 81, 186); /* oklch */ color: oklch(47.4% 0.171 266.0);
Tailwind
colors: {
custom: {
50: '#7b81d0',
500: '#2e51ba',
950: '#000000',
},
}SCSS
$custom: #2e51ba; $custom-light: #7b81d0; $custom-dark: #000000;
JSON
{
"hex": "#2e51ba",
"rgb": {
"r": 46,
"g": 81,
"b": 186
},
"hsl": {
"h": 225,
"s": 60.345,
"l": 45.49
},
"oklch": {
"l": 0.47351,
"c": 0.17067,
"h": 266
},
"luminance": 0.10011
}Semantic roles & 50–950 ramp
primary
#2E51BA
secondary
#C9B67B
accent
#BC44E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82