#4E51E1#4E51E1

#4E51E1 is a mid, highly saturated blue. Relative luminance 0.129; OKLCH L 52.3% C 0.213 H 275.3°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#4E51E1
RGBrgb(78, 81, 225)
HSLhsl(239, 71%, 59%)
HSVhsv(239, 65%, 88%)
CMYKcmyk(65.3%, 64%, 0%, 11.8%)
CIE-LABlab(42.67, 42.86, -73.63)
CIE-LCHlch(42.67, 85.20, 300.20°)
OKLaboklab(52.34% 0.0195 -0.2124)
OKLCHoklch(52.34% 0.213 275.3)
XYZxyz(19.6704, 12.9391, 72.6804)
Luminance0.1294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51E1 #E1DE4E
analogous
#4E9AE1 #4E51E1 #954EE1
triadic
#4E51E1 #E14E51 #51E14E
tetradic
#4E51E1 #E14E9A #E1DE4E #4EE195
square
#4E51E1 #E14E9A #E1DE4E #4EE195
split-complementary
#4E51E1 #E1954E #9AE14E
monochromatic
#1A1D9A #2327CF #4E51E1 #8284EA #B7B8F3

Accessibility & contrast

On white

5.85
#4E51E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#4E51E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51E1
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51E1#FFFFFF#000000##FFFFFF
##4E51E11.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE6
Deuteranopia (green-blind)
#005EDE
Tritanopia (blue-blind)
#007692
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4e51e1;
/* rgb */ color: rgb(78, 81, 225);
/* oklch */ color: oklch(52.3% 0.213 275.3);
Tailwind
colors: {
  custom: {
    50: '#9082eb',
    500: '#4e51e1',
    950: '#000000',
  },
}
SCSS
$custom: #4e51e1;
$custom-light: #9082eb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51e1",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 225
  },
  "hsl": {
    "h": 238.776,
    "s": 71.014,
    "l": 59.412
  },
  "oklch": {
    "l": 0.52337,
    "c": 0.21331,
    "h": 275.3
  },
  "luminance": 0.12941
}

Semantic roles & 50–950 ramp

primary
#4E51E1
secondary
#E2E1A9
accent
#EA3AEE
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4E51E1

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

Preview Lab → · Contrast checker → · Palette generator →

#4E51E1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva