#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
RGBrgb(46, 81, 193)
HSLhsl(226, 62%, 47%)
HSVhsv(226, 76%, 76%)
CMYKcmyk(76.2%, 58%, 0%, 24.3%)
CIE-LABlab(38.40, 27.62, -62.25)
CIE-LCHlch(38.40, 68.10, 293.93°)
OKLaboklab(47.93% -0.0116 -0.1797)
OKLCHoklch(47.93% 0.18 266.3)
XYZxyz(13.6914, 10.3144, 51.7110)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

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
##2E51C11.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.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

Preview Lab

Preview with #2E51C1

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2E51C1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva