#2E51C0#2E51C0

#2E51C0 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.8% C 0.179 H 266.3°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#2E51C0
RGBrgb(46, 81, 192)
HSLhsl(226, 61%, 47%)
HSVhsv(226, 76%, 75%)
CMYKcmyk(76%, 57.8%, 0%, 24.7%)
CIE-LABlab(38.32, 27.24, -61.79)
CIE-LCHlch(38.32, 67.53, 293.79°)
OKLaboklab(47.84% -0.0116 -0.1784)
OKLCHoklch(47.84% 0.179 266.3)
XYZxyz(13.5802, 10.2700, 51.1255)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E51C0 #C09D2E
analogous
#2E9AC0 #2E51C0 #542EC0
triadic
#2E51C0 #C02E51 #51C02E
tetradic
#2E51C0 #C02E9A #C09D2E #2EC054
square
#2E51C0 #C02E9A #C09D2E #2EC054
split-complementary
#2E51C0 #C0542E #9AC02E
monochromatic
#16275D #223C8F #2E51C0 #5574D6 #869CE2

Accessibility & contrast

On white

6.88
#2E51C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#2E51C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E51C0
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E51C0#FFFFFF#000000##FFFFFF
##2E51C01.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C4
Deuteranopia (green-blind)
#0054BE
Tritanopia (blue-blind)
#006D80
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2e51c0;
/* rgb */ color: rgb(46, 81, 192);
/* oklch */ color: oklch(47.8% 0.179 266.3);
Tailwind
colors: {
  custom: {
    50: '#7c81d4',
    500: '#2e51c0',
    950: '#000000',
  },
}
SCSS
$custom: #2e51c0;
$custom-light: #7c81d4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e51c0",
  "rgb": {
    "r": 46,
    "g": 81,
    "b": 192
  },
  "hsl": {
    "h": 225.616,
    "s": 61.345,
    "l": 46.667
  },
  "oklch": {
    "l": 0.47844,
    "c": 0.17875,
    "h": 266.3
  },
  "luminance": 0.10271
}

Semantic roles & 50–950 ramp

primary
#2E51C0
secondary
#CCB97E
accent
#BE43E4
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2E51C0

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

Preview Lab → · Contrast checker → · Palette generator →

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