#4E54D6#4E54D6

#4E54D6 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.9% C 0.196 H 275.2°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#4E54D6
RGBrgb(78, 84, 214)
HSLhsl(237, 62%, 57%)
HSVhsv(237, 64%, 84%)
CMYKcmyk(63.6%, 60.7%, 0%, 16.1%)
CIE-LABlab(42.48, 37.41, -67.66)
CIE-LCHlch(42.48, 77.32, 298.94°)
OKLaboklab(51.92% 0.0178 -0.1949)
OKLCHoklch(51.92% 0.196 275.2)
XYZxyz(18.4458, 12.8138, 65.1065)
Luminance0.1281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E54D6 #D6D04E
analogous
#4E98D6 #4E54D6 #8C4ED6
triadic
#4E54D6 #D64E54 #54D64E
tetradic
#4E54D6 #D64E98 #D6D04E #4ED68C
square
#4E54D6 #D64E98 #D6D04E #4ED68C
split-complementary
#4E54D6 #D68C4E #98D64E
monochromatic
#20258A #2B32BB #4E54D6 #8084E2 #B1B4ED

Accessibility & contrast

On white

5.89
#4E54D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#4E54D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E54D6
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E54D6#FFFFFF#000000##FFFFFF
##4E54D61.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADA
Deuteranopia (green-blind)
#005ED3
Tritanopia (blue-blind)
#00748D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4e54d6;
/* rgb */ color: rgb(78, 84, 214);
/* oklch */ color: oklch(51.9% 0.196 275.2);
Tailwind
colors: {
  custom: {
    50: '#8e84e4',
    500: '#4e54d6',
    950: '#000000',
  },
}
SCSS
$custom: #4e54d6;
$custom-light: #8e84e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e54d6",
  "rgb": {
    "r": 78,
    "g": 84,
    "b": 214
  },
  "hsl": {
    "h": 237.353,
    "s": 62.385,
    "l": 57.255
  },
  "oklch": {
    "l": 0.51924,
    "c": 0.19568,
    "h": 275.2
  },
  "luminance": 0.12815
}

Semantic roles & 50–950 ramp

primary
#4E54D6
secondary
#DBD9A4
accent
#DE42E5
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #4E54D6

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

Preview Lab → · Contrast checker → · Palette generator →

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