#4E54D7#4E54D7

#4E54D7 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 52.0% C 0.197 H 275.2°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#4E54D7
RGBrgb(78, 84, 215)
HSLhsl(237, 63%, 57%)
HSVhsv(237, 64%, 84%)
CMYKcmyk(63.7%, 60.9%, 0%, 15.7%)
CIE-LABlab(42.56, 37.74, -68.11)
CIE-LCHlch(42.56, 77.87, 298.99°)
OKLaboklab(52.01% 0.0178 -0.1962)
OKLCHoklch(52.01% 0.197 275.2)
XYZxyz(18.5739, 12.8651, 65.7812)
Luminance0.1287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E54D7 #D7D14E
analogous
#4E99D7 #4E54D7 #8C4ED7
triadic
#4E54D7 #D74E54 #54D74E
tetradic
#4E54D7 #D74E99 #D7D14E #4ED78C
square
#4E54D7 #D74E99 #D7D14E #4ED78C
split-complementary
#4E54D7 #D78C4E #99D74E
monochromatic
#1F248B #2B31BD #4E54D7 #8084E2 #B2B4EE

Accessibility & contrast

On white

5.88
#4E54D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#4E54D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E54D7
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E54D7#FFFFFF#000000##FFFFFF
##4E54D71.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDB
Deuteranopia (green-blind)
#005ED4
Tritanopia (blue-blind)
#00758D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4e54d7;
/* rgb */ color: rgb(78, 84, 215);
/* oklch */ color: oklch(52.0% 0.197 275.2);
Tailwind
colors: {
  custom: {
    50: '#8e84e4',
    500: '#4e54d7',
    950: '#000000',
  },
}
SCSS
$custom: #4e54d7;
$custom-light: #8e84e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e54d7",
  "rgb": {
    "r": 78,
    "g": 84,
    "b": 215
  },
  "hsl": {
    "h": 237.372,
    "s": 63.134,
    "l": 57.451
  },
  "oklch": {
    "l": 0.52005,
    "c": 0.19698,
    "h": 275.2
  },
  "luminance": 0.12867
}

Semantic roles & 50–950 ramp

primary
#4E54D7
secondary
#DCDAA5
accent
#DF42E6
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #4E54D7

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

Preview Lab → · Contrast checker → · Palette generator →

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