#2E51C4#2E51C4

#2E51C4 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.2% C 0.184 H 266.4°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#2E51C4
RGBrgb(46, 81, 196)
HSLhsl(226, 62%, 47%)
HSVhsv(226, 77%, 77%)
CMYKcmyk(76.5%, 58.7%, 0%, 23.1%)
CIE-LABlab(38.64, 28.74, -63.61)
CIE-LCHlch(38.64, 69.80, 294.31°)
OKLaboklab(48.18% -0.0115 -0.1837)
OKLCHoklch(48.18% 0.184 266.4)
XYZxyz(14.0295, 10.4496, 53.4914)
Luminance0.1045 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E51C4 #C4A12E
analogous
#2E9CC4 #2E51C4 #562EC4
triadic
#2E51C4 #C42E51 #51C42E
tetradic
#2E51C4 #C42E9C #C4A12E #2EC456
square
#2E51C4 #C42E9C #C4A12E #2EC456
split-complementary
#2E51C4 #C4562E #9CC42E
monochromatic
#172861 #223D92 #2E51C4 #5875D8 #899EE3

Accessibility & contrast

On white

6.80
#2E51C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#2E51C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E51C4
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E51C4#FFFFFF#000000##FFFFFF
##2E51C41.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C8
Deuteranopia (green-blind)
#0054C2
Tritanopia (blue-blind)
#006E82
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2e51c4;
/* rgb */ color: rgb(46, 81, 196);
/* oklch */ color: oklch(48.2% 0.184 266.4);
Tailwind
colors: {
  custom: {
    50: '#7d81d7',
    500: '#2e51c4',
    950: '#000000',
  },
}
SCSS
$custom: #2e51c4;
$custom-light: #7d81d7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e51c4",
  "rgb": {
    "r": 46,
    "g": 81,
    "b": 196
  },
  "hsl": {
    "h": 226,
    "s": 61.983,
    "l": 47.451
  },
  "oklch": {
    "l": 0.48178,
    "c": 0.18407,
    "h": 266.4
  },
  "luminance": 0.10451
}

Semantic roles & 50–950 ramp

primary
#2E51C4
secondary
#CDBB81
accent
#BF43E5
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2E51C4

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

Preview Lab → · Contrast checker → · Palette generator →

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