#4E54D8#4E54D8

#4E54D8 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 52.1% C 0.198 H 275.1°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#4E54D8
RGBrgb(78, 84, 216)
HSLhsl(237, 64%, 58%)
HSVhsv(237, 64%, 85%)
CMYKcmyk(63.9%, 61.1%, 0%, 15.3%)
CIE-LABlab(42.64, 38.07, -68.55)
CIE-LCHlch(42.64, 78.42, 299.05°)
OKLaboklab(52.09% 0.0177 -0.1975)
OKLCHoklch(52.09% 0.198 275.1)
XYZxyz(18.7028, 12.9166, 66.4600)
Luminance0.1292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E54D8 #D8D24E
analogous
#4E99D8 #4E54D8 #8D4ED8
triadic
#4E54D8 #D84E54 #54D84E
tetradic
#4E54D8 #D84E99 #D8D24E #4ED88D
square
#4E54D8 #D84E99 #D8D24E #4ED88D
split-complementary
#4E54D8 #D88D4E #99D84E
monochromatic
#1F248D #2A31BF #4E54D8 #8084E3 #B2B5EE

Accessibility & contrast

On white

5.86
#4E54D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#4E54D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E54D8
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E54D8#FFFFFF#000000##FFFFFF
##4E54D81.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDC
Deuteranopia (green-blind)
#005FD5
Tritanopia (blue-blind)
#00758E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4e54d8;
/* rgb */ color: rgb(78, 84, 216);
/* oklch */ color: oklch(52.1% 0.198 275.1);
Tailwind
colors: {
  custom: {
    50: '#8e84e5',
    500: '#4e54d8',
    950: '#000000',
  },
}
SCSS
$custom: #4e54d8;
$custom-light: #8e84e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e54d8",
  "rgb": {
    "r": 78,
    "g": 84,
    "b": 216
  },
  "hsl": {
    "h": 237.391,
    "s": 63.889,
    "l": 57.647
  },
  "oklch": {
    "l": 0.52087,
    "c": 0.19828,
    "h": 275.1
  },
  "luminance": 0.12918
}

Semantic roles & 50–950 ramp

primary
#4E54D8
secondary
#DDDAA5
accent
#E041E7
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #4E54D8

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

Preview Lab → · Contrast checker → · Palette generator →

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