#4E51E0#4E51E0

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

Color values

HEX#4E51E0
RGBrgb(78, 81, 224)
HSLhsl(239, 70%, 59%)
HSVhsv(239, 65%, 88%)
CMYKcmyk(65.2%, 63.8%, 0%, 12.2%)
CIE-LABlab(42.59, 42.53, -73.20)
CIE-LCHlch(42.59, 84.66, 300.16°)
OKLaboklab(52.25% 0.0196 -0.2111)
OKLCHoklch(52.25% 0.212 275.3)
XYZxyz(19.5344, 12.8847, 71.9641)
Luminance0.1289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51E0 #E0DD4E
analogous
#4E9AE0 #4E51E0 #944EE0
triadic
#4E51E0 #E04E51 #51E04E
tetradic
#4E51E0 #E04E9A #E0DD4E #4EE094
square
#4E51E0 #E04E9A #E0DD4E #4EE094
split-complementary
#4E51E0 #E0944E #9AE04E
monochromatic
#1B1D99 #2427CD #4E51E0 #8284E9 #B6B7F2

Accessibility & contrast

On white

5.87
#4E51E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#4E51E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51E0
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51E0#FFFFFF#000000##FFFFFF
##4E51E01.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE5
Deuteranopia (green-blind)
#005EDD
Tritanopia (blue-blind)
#007691
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4e51e0;
/* rgb */ color: rgb(78, 81, 224);
/* oklch */ color: oklch(52.3% 0.212 275.3);
Tailwind
colors: {
  custom: {
    50: '#9082eb',
    500: '#4e51e0',
    950: '#000000',
  },
}
SCSS
$custom: #4e51e0;
$custom-light: #9082eb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51e0",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 224
  },
  "hsl": {
    "h": 238.767,
    "s": 70.192,
    "l": 59.216
  },
  "oklch": {
    "l": 0.52251,
    "c": 0.21204,
    "h": 275.3
  },
  "luminance": 0.12886
}

Semantic roles & 50–950 ramp

primary
#4E51E0
secondary
#E1E0A8
accent
#E93BED
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4E51E0

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

Preview Lab → · Contrast checker → · Palette generator →

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