#4E51E7#4E51E7

#4E51E7 is a mid, highly saturated blue. Relative luminance 0.133; OKLCH L 52.9% C 0.221 H 274.9°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#4E51E7
RGBrgb(78, 81, 231)
HSLhsl(239, 76%, 61%)
HSVhsv(239, 66%, 91%)
CMYKcmyk(66.2%, 64.9%, 0%, 9.4%)
CIE-LABlab(43.17, 44.82, -76.22)
CIE-LCHlch(43.17, 88.42, 300.46°)
OKLaboklab(52.85% 0.019 -0.22)
OKLCHoklch(52.85% 0.221 274.9)
XYZxyz(20.5034, 13.2722, 77.0671)
Luminance0.1327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51E7 #E7E44E
analogous
#4E9DE7 #4E51E7 #984EE7
triadic
#4E51E7 #E74E51 #51E74E
tetradic
#4E51E7 #E74E9D #E7E44E #4EE798
square
#4E51E7 #E74E9D #E7E44E #4EE798
split-complementary
#4E51E7 #E7984E #9DE74E
monochromatic
#1619A4 #1E21DA #4E51E7 #8486EE #BABBF6

Accessibility & contrast

On white

5.75
#4E51E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#4E51E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51E7
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51E7#FFFFFF#000000##FFFFFF
##4E51E71.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DEC
Deuteranopia (green-blind)
#005FE4
Tritanopia (blue-blind)
#007895
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4e51e7;
/* rgb */ color: rgb(78, 81, 231);
/* oklch */ color: oklch(52.9% 0.221 274.9);
Tailwind
colors: {
  custom: {
    50: '#9182f0',
    500: '#4e51e7',
    950: '#000000',
  },
}
SCSS
$custom: #4e51e7;
$custom-light: #9182f0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51e7",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 231
  },
  "hsl": {
    "h": 238.824,
    "s": 76.119,
    "l": 60.588
  },
  "oklch": {
    "l": 0.52854,
    "c": 0.22081,
    "h": 274.9
  },
  "luminance": 0.13274
}

Semantic roles & 50–950 ramp

primary
#4E51E7
secondary
#E5E4AB
accent
#D40DD8
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A17
muted
#7E7C85

Preview Lab

Preview with #4E51E7

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

Preview Lab → · Contrast checker → · Palette generator →

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