#4E54C0#4E54C0

#4E54C0 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.2% C 0.166 H 276.2°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#4E54C0
RGBrgb(78, 84, 192)
HSLhsl(237, 48%, 53%)
HSVhsv(237, 59%, 75%)
CMYKcmyk(59.4%, 56.3%, 0%, 24.7%)
CIE-LABlab(40.84, 30.06, -57.62)
CIE-LCHlch(40.84, 64.99, 297.55°)
OKLaboklab(50.19% 0.018 -0.1653)
OKLCHoklch(50.19% 0.166 276.2)
XYZxyz(15.8236, 11.7649, 51.2960)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E54C0 #C0BA4E
analogous
#4E8DC0 #4E54C0 #814EC0
triadic
#4E54C0 #C04E54 #54C04E
tetradic
#4E54C0 #C04E8D #C0BA4E #4EC081
square
#4E54C0 #C04E8D #C0BA4E #4EC081
split-complementary
#4E54C0 #C0814E #8DC04E
monochromatic
#272A6D #373C9A #4E54C0 #7B80D0 #A8ABE0

Accessibility & contrast

On white

6.26
#4E54C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#4E54C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E54C0
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E54C0#FFFFFF#000000##FFFFFF
##4E54C01.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C4
Deuteranopia (green-blind)
#005CBE
Tritanopia (blue-blind)
#006D82
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4e54c0;
/* rgb */ color: rgb(78, 84, 192);
/* oklch */ color: oklch(50.2% 0.166 276.2);
Tailwind
colors: {
  custom: {
    50: '#8a84d4',
    500: '#4e54c0',
    950: '#000000',
  },
}
SCSS
$custom: #4e54c0;
$custom-light: #8a84d4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e54c0",
  "rgb": {
    "r": 78,
    "g": 84,
    "b": 192
  },
  "hsl": {
    "h": 236.842,
    "s": 47.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50192,
    "c": 0.16633,
    "h": 276.2
  },
  "luminance": 0.11766
}

Semantic roles & 50–950 ramp

primary
#4E54C0
secondary
#CECB9C
accent
#D051D7
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #4E54C0

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

Preview Lab → · Contrast checker → · Palette generator →

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