#4E51D8#4E51D8

#4E51D8 is a mid, highly saturated blue. Relative luminance 0.125; OKLCH L 51.6% C 0.202 H 275.7°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#4E51D8
RGBrgb(78, 81, 216)
HSLhsl(239, 64%, 58%)
HSVhsv(239, 64%, 85%)
CMYKcmyk(63.9%, 62.5%, 0%, 15.3%)
CIE-LABlab(41.94, 39.90, -69.69)
CIE-LCHlch(41.94, 80.30, 299.79°)
OKLaboklab(51.58% 0.0202 -0.2008)
OKLCHoklch(51.58% 0.202 275.7)
XYZxyz(18.4749, 12.4609, 66.3840)
Luminance0.1246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51D8 #D8D54E
analogous
#4E96D8 #4E51D8 #904ED8
triadic
#4E51D8 #D84E51 #51D84E
tetradic
#4E51D8 #D84E96 #D8D54E #4ED890
square
#4E51D8 #D84E96 #D8D54E #4ED890
split-complementary
#4E51D8 #D8904E #96D84E
monochromatic
#1F218D #2A2DBF #4E51D8 #8082E3 #B2B4EE

Accessibility & contrast

On white

6.01
#4E51D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#4E51D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51D8
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51D8#FFFFFF#000000##FFFFFF
##4E51D81.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DC
Deuteranopia (green-blind)
#005DD5
Tritanopia (blue-blind)
#00738D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4e51d8;
/* rgb */ color: rgb(78, 81, 216);
/* oklch */ color: oklch(51.6% 0.202 275.7);
Tailwind
colors: {
  custom: {
    50: '#8f82e5',
    500: '#4e51d8',
    950: '#000000',
  },
}
SCSS
$custom: #4e51d8;
$custom-light: #8f82e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51d8",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 216
  },
  "hsl": {
    "h": 238.696,
    "s": 63.889,
    "l": 57.647
  },
  "oklch": {
    "l": 0.51575,
    "c": 0.20186,
    "h": 275.7
  },
  "luminance": 0.12462
}

Semantic roles & 50–950 ramp

primary
#4E51D8
secondary
#DDDBA5
accent
#E341E7
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4E51D8

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

Preview Lab → · Contrast checker → · Palette generator →

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