#4E54E6#4E54E6

#4E54E6 is a mid, highly saturated blue. Relative luminance 0.137; OKLCH L 53.3% C 0.216 H 274.5°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#4E54E6
RGBrgb(78, 84, 230)
HSLhsl(238, 75%, 60%)
HSVhsv(238, 66%, 90%)
CMYKcmyk(66.1%, 63.5%, 0%, 9.8%)
CIE-LABlab(43.76, 42.71, -74.69)
CIE-LCHlch(43.76, 86.04, 299.76°)
OKLaboklab(53.26% 0.0169 -0.2155)
OKLCHoklch(53.26% 0.216 274.5)
XYZxyz(20.5904, 13.6717, 76.4014)
Luminance0.1367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E54E6 #E6E04E
analogous
#4EA0E6 #4E54E6 #944EE6
triadic
#4E54E6 #E64E54 #54E64E
tetradic
#4E54E6 #E64EA0 #E6E04E #4EE694
square
#4E54E6 #E64EA0 #E6E04E #4EE694
split-complementary
#4E54E6 #E6944E #A0E64E
monochromatic
#171CA3 #1F26D8 #4E54E6 #8488EE #B9BCF5

Accessibility & contrast

On white

5.62
#4E54E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#4E54E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E54E6
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E54E6#FFFFFF#000000##FFFFFF
##4E54E61.005.623.735.62
#FFFFFF5.621.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EEB
Deuteranopia (green-blind)
#0061E3
Tritanopia (blue-blind)
#007A95
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #4e54e6;
/* rgb */ color: rgb(78, 84, 230);
/* oklch */ color: oklch(53.3% 0.216 274.5);
Tailwind
colors: {
  custom: {
    50: '#9184ef',
    500: '#4e54e6',
    950: '#000000',
  },
}
SCSS
$custom: #4e54e6;
$custom-light: #9184ef;
$custom-dark: #000000;
JSON
{
  "hex": "#4e54e6",
  "rgb": {
    "r": 78,
    "g": 84,
    "b": 230
  },
  "hsl": {
    "h": 237.632,
    "s": 75.248,
    "l": 60.392
  },
  "oklch": {
    "l": 0.53257,
    "c": 0.21616,
    "h": 274.5
  },
  "luminance": 0.13674
}

Semantic roles & 50–950 ramp

primary
#4E54E6
secondary
#E5E3AB
accent
#CF0ED7
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B17
muted
#7E7C85

Preview Lab

Preview with #4E54E6

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

Preview Lab → · Contrast checker → · Palette generator →

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