#4E51D1#4E51D1

#4E51D1 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 51.0% C 0.193 H 276.1°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#4E51D1
RGBrgb(78, 81, 209)
HSLhsl(239, 59%, 56%)
HSVhsv(239, 63%, 82%)
CMYKcmyk(62.7%, 61.2%, 0%, 18%)
CIE-LABlab(41.38, 37.58, -66.58)
CIE-LCHlch(41.38, 76.45, 299.44°)
OKLaboklab(51% 0.0205 -0.1917)
OKLCHoklch(51% 0.193 276.1)
XYZxyz(17.5892, 12.1066, 61.7191)
Luminance0.1211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51D1 #D1CE4E
analogous
#4E93D1 #4E51D1 #8D4ED1
triadic
#4E51D1 #D14E51 #51D14E
tetradic
#4E51D1 #D14E93 #D1CE4E #4ED18D
square
#4E51D1 #D14E93 #D1CE4E #4ED18D
split-complementary
#4E51D1 #D18D4E #93D14E
monochromatic
#222483 #2F32B3 #4E51D1 #7F81DE #AFB1EA

Accessibility & contrast

On white

6.14
#4E51D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#4E51D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51D1
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51D1#FFFFFF#000000##FFFFFF
##4E51D11.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D5
Deuteranopia (green-blind)
#005CCE
Tritanopia (blue-blind)
#007189
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4e51d1;
/* rgb */ color: rgb(78, 81, 209);
/* oklch */ color: oklch(51.0% 0.193 276.1);
Tailwind
colors: {
  custom: {
    50: '#8d82e0',
    500: '#4e51d1',
    950: '#000000',
  },
}
SCSS
$custom: #4e51d1;
$custom-light: #8d82e0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51d1",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 209
  },
  "hsl": {
    "h": 238.626,
    "s": 58.744,
    "l": 56.275
  },
  "oklch": {
    "l": 0.50995,
    "c": 0.19281,
    "h": 276.1
  },
  "luminance": 0.12108
}

Semantic roles & 50–950 ramp

primary
#4E51D1
secondary
#D8D7A2
accent
#DE46E2
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4E51D1

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

Preview Lab → · Contrast checker → · Palette generator →

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