#4E54D4#4E54D4

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

Color values

HEX#4E54D4
RGBrgb(78, 84, 212)
HSLhsl(237, 61%, 57%)
HSVhsv(237, 63%, 83%)
CMYKcmyk(63.2%, 60.4%, 0%, 16.9%)
CIE-LABlab(42.33, 36.74, -66.77)
CIE-LCHlch(42.33, 76.21, 298.82°)
OKLaboklab(51.76% 0.0179 -0.1922)
OKLCHoklch(51.76% 0.193 275.3)
XYZxyz(18.1920, 12.7123, 63.7696)
Luminance0.1271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E54D4 #D4CE4E
analogous
#4E97D4 #4E54D4 #8B4ED4
triadic
#4E54D4 #D44E54 #54D44E
tetradic
#4E54D4 #D44E97 #D4CE4E #4ED48B
square
#4E54D4 #D44E97 #D4CE4E #4ED48B
split-complementary
#4E54D4 #D48B4E #97D44E
monochromatic
#212587 #2D33B8 #4E54D4 #7F84E0 #B0B3EC

Accessibility & contrast

On white

5.93
#4E54D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#4E54D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E54D4
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E54D4#FFFFFF#000000##FFFFFF
##4E54D41.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e54d4;
/* rgb */ color: rgb(78, 84, 212);
/* oklch */ color: oklch(51.8% 0.193 275.3);
Tailwind
colors: {
  custom: {
    50: '#8e84e2',
    500: '#4e54d4',
    950: '#000000',
  },
}
SCSS
$custom: #4e54d4;
$custom-light: #8e84e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e54d4",
  "rgb": {
    "r": 78,
    "g": 84,
    "b": 212
  },
  "hsl": {
    "h": 237.313,
    "s": 60.909,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51761,
    "c": 0.19308,
    "h": 275.3
  },
  "luminance": 0.12714
}

Semantic roles & 50–950 ramp

primary
#4E54D4
secondary
#DAD8A4
accent
#DD44E4
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B15
muted
#7E7C84

Preview Lab

Preview with #4E54D4

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

Preview Lab → · Contrast checker → · Palette generator →

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