#2E51C1#2E51C1
#2E51C1 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.9% C 0.180 H 266.3°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).
Color values
| HEX | #2E51C1 |
|---|---|
| RGB | rgb(46, 81, 193) |
| HSL | hsl(226, 62%, 47%) |
| HSV | hsv(226, 76%, 76%) |
| CMYK | cmyk(76.2%, 58%, 0%, 24.3%) |
| CIE-LAB | lab(38.40, 27.62, -62.25) |
| CIE-LCH | lch(38.40, 68.10, 293.93°) |
| OKLab | oklab(47.93% -0.0116 -0.1797) |
| OKLCH | oklch(47.93% 0.18 266.3) |
| XYZ | xyz(13.6914, 10.3144, 51.7110) |
| Luminance | 0.1032 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.01
Blue Blue
#2242C7
ΔE00 4.68
Cobalt
#0047AB
ΔE00 5.02
Blue (survey)
#0343DF
ΔE00 5.45
Warm Blue
#4B57DB
ΔE00 5.51
Azul
#1D5DEC
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E51C1 #C19E2E
analogous
#2E9BC1 #2E51C1 #542EC1
triadic
#2E51C1 #C12E51 #51C12E
tetradic
#2E51C1 #C12E9B #C19E2E #2EC154
square
#2E51C1 #C12E9B #C19E2E #2EC154
split-complementary
#2E51C1 #C1542E #9BC12E
monochromatic
#16285E #223C90 #2E51C1 #5674D7 #879DE2
Accessibility & contrast
On white
6.86
#2E51C1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.06
#2E51C1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2E51C1
6.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E51C1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E51C1 | 1.00 | 6.86 | 3.06 | 6.86 |
| #FFFFFF | 6.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C5
Deuteranopia (green-blind)
#0054BF
Tritanopia (blue-blind)
#006D81
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #2e51c1; /* rgb */ color: rgb(46, 81, 193); /* oklch */ color: oklch(47.9% 0.180 266.3);
Tailwind
colors: {
custom: {
50: '#7d81d5',
500: '#2e51c1',
950: '#000000',
},
}SCSS
$custom: #2e51c1; $custom-light: #7d81d5; $custom-dark: #000000;
JSON
{
"hex": "#2e51c1",
"rgb": {
"r": 46,
"g": 81,
"b": 193
},
"hsl": {
"h": 225.714,
"s": 61.506,
"l": 46.863
},
"oklch": {
"l": 0.47927,
"c": 0.18008,
"h": 266.3
},
"luminance": 0.10316
}Semantic roles & 50–950 ramp
primary
#2E51C1
secondary
#CCBA7F
accent
#BE43E5
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83