#4E51D7#4E51D7

#4E51D7 is a mid, highly saturated blue. Relative luminance 0.124; OKLCH L 51.5% C 0.201 H 275.8°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#4E51D7
RGBrgb(78, 81, 215)
HSLhsl(239, 63%, 57%)
HSVhsv(239, 64%, 84%)
CMYKcmyk(63.7%, 62.3%, 0%, 15.7%)
CIE-LABlab(41.86, 39.57, -69.25)
CIE-LCHlch(41.86, 79.76, 299.74°)
OKLaboklab(51.49% 0.0202 -0.1996)
OKLCHoklch(51.49% 0.201 275.8)
XYZxyz(18.3460, 12.4093, 65.7052)
Luminance0.1241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51D7 #D7D44E
analogous
#4E96D7 #4E51D7 #8F4ED7
triadic
#4E51D7 #D74E51 #51D74E
tetradic
#4E51D7 #D74E96 #D7D44E #4ED78F
square
#4E51D7 #D74E96 #D7D44E #4ED78F
split-complementary
#4E51D7 #D78F4E #96D74E
monochromatic
#1F228B #2B2EBD #4E51D7 #8082E2 #B2B3EE

Accessibility & contrast

On white

6.03
#4E51D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#4E51D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51D7
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51D7#FFFFFF#000000##FFFFFF
##4E51D71.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DB
Deuteranopia (green-blind)
#005DD4
Tritanopia (blue-blind)
#00738C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4e51d7;
/* rgb */ color: rgb(78, 81, 215);
/* oklch */ color: oklch(51.5% 0.201 275.8);
Tailwind
colors: {
  custom: {
    50: '#8e82e4',
    500: '#4e51d7',
    950: '#000000',
  },
}
SCSS
$custom: #4e51d7;
$custom-light: #8e82e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51d7",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 215
  },
  "hsl": {
    "h": 238.686,
    "s": 63.134,
    "l": 57.451
  },
  "oklch": {
    "l": 0.51491,
    "c": 0.20058,
    "h": 275.8
  },
  "luminance": 0.12411
}

Semantic roles & 50–950 ramp

primary
#4E51D7
secondary
#DCDBA5
accent
#E342E6
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4E51D7

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

Preview Lab → · Contrast checker → · Palette generator →

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