#4E54D5#4E54D5

#4E54D5 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.8% C 0.194 H 275.3°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#4E54D5
RGBrgb(78, 84, 213)
HSLhsl(237, 62%, 57%)
HSVhsv(237, 63%, 84%)
CMYKcmyk(63.4%, 60.6%, 0%, 16.5%)
CIE-LABlab(42.40, 37.08, -67.22)
CIE-LCHlch(42.40, 76.76, 298.88°)
OKLaboklab(51.84% 0.0178 -0.1936)
OKLCHoklch(51.84% 0.194 275.3)
XYZxyz(18.3185, 12.7629, 64.4360)
Luminance0.1276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E54D5 #D5CF4E
analogous
#4E98D5 #4E54D5 #8B4ED5
triadic
#4E54D5 #D54E54 #54D54E
tetradic
#4E54D5 #D54E98 #D5CF4E #4ED58B
square
#4E54D5 #D54E98 #D5CF4E #4ED58B
split-complementary
#4E54D5 #D58B4E #98D54E
monochromatic
#202588 #2C32BA #4E54D5 #7F84E1 #B1B4EC

Accessibility & contrast

On white

5.91
#4E54D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#4E54D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E54D5
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E54D5#FFFFFF#000000##FFFFFF
##4E54D51.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD9
Deuteranopia (green-blind)
#005ED2
Tritanopia (blue-blind)
#00748C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4e54d5;
/* rgb */ color: rgb(78, 84, 213);
/* oklch */ color: oklch(51.8% 0.194 275.3);
Tailwind
colors: {
  custom: {
    50: '#8e84e3',
    500: '#4e54d5',
    950: '#000000',
  },
}
SCSS
$custom: #4e54d5;
$custom-light: #8e84e3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e54d5",
  "rgb": {
    "r": 78,
    "g": 84,
    "b": 213
  },
  "hsl": {
    "h": 237.333,
    "s": 61.644,
    "l": 57.059
  },
  "oklch": {
    "l": 0.51842,
    "c": 0.19438,
    "h": 275.3
  },
  "luminance": 0.12764
}

Semantic roles & 50–950 ramp

primary
#4E54D5
secondary
#DBD8A4
accent
#DE43E5
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #4E54D5

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

Preview Lab → · Contrast checker → · Palette generator →

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