#4E51D5#4E51D5

#4E51D5 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.3% C 0.198 H 275.9°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#4E51D5
RGBrgb(78, 81, 213)
HSLhsl(239, 62%, 57%)
HSVhsv(239, 63%, 84%)
CMYKcmyk(63.4%, 62%, 0%, 16.5%)
CIE-LABlab(41.70, 38.90, -68.36)
CIE-LCHlch(41.70, 78.66, 299.64°)
OKLaboklab(51.33% 0.0203 -0.1969)
OKLCHoklch(51.33% 0.198 275.9)
XYZxyz(18.0906, 12.3072, 64.3601)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51D5 #D5D24E
analogous
#4E94D5 #4E51D5 #8F4ED5
triadic
#4E51D5 #D54E51 #51D54E
tetradic
#4E51D5 #D54E94 #D5D24E #4ED58F
square
#4E51D5 #D54E94 #D5D24E #4ED58F
split-complementary
#4E51D5 #D58F4E #94D54E
monochromatic
#202388 #2C2FBA #4E51D5 #7F82E1 #B1B2EC

Accessibility & contrast

On white

6.07
#4E51D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#4E51D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51D5
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51D5#FFFFFF#000000##FFFFFF
##4E51D51.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D9
Deuteranopia (green-blind)
#005CD2
Tritanopia (blue-blind)
#00728B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4e51d5;
/* rgb */ color: rgb(78, 81, 213);
/* oklch */ color: oklch(51.3% 0.198 275.9);
Tailwind
colors: {
  custom: {
    50: '#8e82e3',
    500: '#4e51d5',
    950: '#000000',
  },
}
SCSS
$custom: #4e51d5;
$custom-light: #8e82e3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51d5",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 213
  },
  "hsl": {
    "h": 238.667,
    "s": 61.644,
    "l": 57.059
  },
  "oklch": {
    "l": 0.51325,
    "c": 0.198,
    "h": 275.9
  },
  "luminance": 0.12309
}

Semantic roles & 50–950 ramp

primary
#4E51D5
secondary
#DBDAA4
accent
#E143E5
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4E51D5

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

Preview Lab → · Contrast checker → · Palette generator →

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