#4E51E3#4E51E3

#4E51E3 is a mid, highly saturated blue. Relative luminance 0.131; OKLCH L 52.5% C 0.216 H 275.1°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#4E51E3
RGBrgb(78, 81, 227)
HSLhsl(239, 73%, 60%)
HSVhsv(239, 66%, 89%)
CMYKcmyk(65.6%, 64.3%, 0%, 11%)
CIE-LABlab(42.84, 43.51, -74.50)
CIE-LCHlch(42.84, 86.28, 300.29°)
OKLaboklab(52.51% 0.0194 -0.2149)
OKLCHoklch(52.51% 0.216 275.1)
XYZxyz(19.9449, 13.0489, 74.1258)
Luminance0.1305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51E3 #E3E04E
analogous
#4E9CE3 #4E51E3 #964EE3
triadic
#4E51E3 #E34E51 #51E34E
tetradic
#4E51E3 #E34E9C #E3E04E #4EE396
square
#4E51E3 #E34E9C #E3E04E #4EE396
split-complementary
#4E51E3 #E3964E #9CE34E
monochromatic
#191C9E #2125D3 #4E51E3 #8385EB #B8B9F4

Accessibility & contrast

On white

5.82
#4E51E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#4E51E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51E3
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51E3#FFFFFF#000000##FFFFFF
##4E51E31.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE8
Deuteranopia (green-blind)
#005EE0
Tritanopia (blue-blind)
#007793
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4e51e3;
/* rgb */ color: rgb(78, 81, 227);
/* oklch */ color: oklch(52.5% 0.216 275.1);
Tailwind
colors: {
  custom: {
    50: '#9182ed',
    500: '#4e51e3',
    950: '#000000',
  },
}
SCSS
$custom: #4e51e3;
$custom-light: #9182ed;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51e3",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 227
  },
  "hsl": {
    "h": 238.792,
    "s": 72.683,
    "l": 59.804
  },
  "oklch": {
    "l": 0.52508,
    "c": 0.21582,
    "h": 275.1
  },
  "luminance": 0.13051
}

Semantic roles & 50–950 ramp

primary
#4E51E3
secondary
#E3E2AA
accent
#EC38EF
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4E51E3

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

Preview Lab → · Contrast checker → · Palette generator →

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