#2E51C3#2E51C3

#2E51C3 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.1% C 0.183 H 266.4°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#2E51C3
RGBrgb(46, 81, 195)
HSLhsl(226, 62%, 47%)
HSVhsv(226, 76%, 76%)
CMYKcmyk(76.4%, 58.5%, 0%, 23.5%)
CIE-LABlab(38.56, 28.36, -63.16)
CIE-LCHlch(38.56, 69.23, 294.19°)
OKLaboklab(48.09% -0.0115 -0.1824)
OKLCHoklch(48.09% 0.183 266.4)
XYZxyz(13.9160, 10.4043, 52.8940)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E51C3 #C3A02E
analogous
#2E9CC3 #2E51C3 #552EC3
triadic
#2E51C3 #C32E51 #51C32E
tetradic
#2E51C3 #C32E9C #C3A02E #2EC355
square
#2E51C3 #C32E9C #C3A02E #2EC355
split-complementary
#2E51C3 #C3552E #9CC32E
monochromatic
#172860 #223C91 #2E51C3 #5775D7 #889EE3

Accessibility & contrast

On white

6.82
#2E51C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#2E51C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E51C3
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E51C3#FFFFFF#000000##FFFFFF
##2E51C31.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e51c3;
/* rgb */ color: rgb(46, 81, 195);
/* oklch */ color: oklch(48.1% 0.183 266.4);
Tailwind
colors: {
  custom: {
    50: '#7d81d6',
    500: '#2e51c3',
    950: '#000000',
  },
}
SCSS
$custom: #2e51c3;
$custom-light: #7d81d6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e51c3",
  "rgb": {
    "r": 46,
    "g": 81,
    "b": 195
  },
  "hsl": {
    "h": 225.906,
    "s": 61.826,
    "l": 47.255
  },
  "oklch": {
    "l": 0.48094,
    "c": 0.18274,
    "h": 266.4
  },
  "luminance": 0.10406
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E51C3

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

Preview Lab → · Contrast checker → · Palette generator →

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