#4E51E2#4E51E2

#4E51E2 is a mid, highly saturated blue. Relative luminance 0.130; OKLCH L 52.4% C 0.215 H 275.2°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#4E51E2
RGBrgb(78, 81, 226)
HSLhsl(239, 72%, 60%)
HSVhsv(239, 65%, 89%)
CMYKcmyk(65.5%, 64.2%, 0%, 11.4%)
CIE-LABlab(42.75, 43.19, -74.07)
CIE-LCHlch(42.75, 85.74, 300.25°)
OKLaboklab(52.42% 0.0194 -0.2137)
OKLCHoklch(52.42% 0.215 275.2)
XYZxyz(19.8073, 12.9938, 73.4010)
Luminance0.1300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51E2 #E2DF4E
analogous
#4E9BE2 #4E51E2 #954EE2
triadic
#4E51E2 #E24E51 #51E24E
tetradic
#4E51E2 #E24E9B #E2DF4E #4EE295
square
#4E51E2 #E24E9B #E2DF4E #4EE295
split-complementary
#4E51E2 #E2954E #9BE24E
monochromatic
#1A1C9C #2226D1 #4E51E2 #8385EB #B7B8F3

Accessibility & contrast

On white

5.83
#4E51E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#4E51E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51E2
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51E2#FFFFFF#000000##FFFFFF
##4E51E21.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE7
Deuteranopia (green-blind)
#005EDF
Tritanopia (blue-blind)
#007792
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4e51e2;
/* rgb */ color: rgb(78, 81, 226);
/* oklch */ color: oklch(52.4% 0.215 275.2);
Tailwind
colors: {
  custom: {
    50: '#9082ec',
    500: '#4e51e2',
    950: '#000000',
  },
}
SCSS
$custom: #4e51e2;
$custom-light: #9082ec;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51e2",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 226
  },
  "hsl": {
    "h": 238.784,
    "s": 71.845,
    "l": 59.608
  },
  "oklch": {
    "l": 0.52422,
    "c": 0.21456,
    "h": 275.2
  },
  "luminance": 0.12996
}

Semantic roles & 50–950 ramp

primary
#4E51E2
secondary
#E3E1A9
accent
#EB39EF
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4E51E2

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

Preview Lab → · Contrast checker → · Palette generator →

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