#4E51D0#4E51D0

#4E51D0 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.9% C 0.192 H 276.2°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#4E51D0
RGBrgb(78, 81, 208)
HSLhsl(239, 58%, 56%)
HSVhsv(239, 63%, 82%)
CMYKcmyk(62.5%, 61.1%, 0%, 18.4%)
CIE-LABlab(41.31, 37.25, -66.13)
CIE-LCHlch(41.31, 75.90, 299.39°)
OKLaboklab(50.91% 0.0206 -0.1904)
OKLCHoklch(50.91% 0.192 276.2)
XYZxyz(17.4658, 12.0572, 61.0691)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51D0 #D0CD4E
analogous
#4E92D0 #4E51D0 #8C4ED0
triadic
#4E51D0 #D04E51 #51D04E
tetradic
#4E51D0 #D04E92 #D0CD4E #4ED08C
square
#4E51D0 #D04E92 #D0CD4E #4ED08C
split-complementary
#4E51D0 #D08C4E #92D04E
monochromatic
#222581 #2F32B2 #4E51D0 #7E81DD #AFB0EA

Accessibility & contrast

On white

6.16
#4E51D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#4E51D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51D0
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51D0#FFFFFF#000000##FFFFFF
##4E51D01.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D4
Deuteranopia (green-blind)
#005CCD
Tritanopia (blue-blind)
#007189
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4e51d0;
/* rgb */ color: rgb(78, 81, 208);
/* oklch */ color: oklch(50.9% 0.192 276.2);
Tailwind
colors: {
  custom: {
    50: '#8d82df',
    500: '#4e51d0',
    950: '#000000',
  },
}
SCSS
$custom: #4e51d0;
$custom-light: #8d82df;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51d0",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 208
  },
  "hsl": {
    "h": 238.615,
    "s": 58.036,
    "l": 56.078
  },
  "oklch": {
    "l": 0.50913,
    "c": 0.1915,
    "h": 276.2
  },
  "luminance": 0.12059
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E51D0

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

Preview Lab → · Contrast checker → · Palette generator →

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