#4E54E1#4E54E1

#4E54E1 is a mid, highly saturated blue. Relative luminance 0.134; OKLCH L 52.8% C 0.210 H 274.7°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#4E54E1
RGBrgb(78, 84, 225)
HSLhsl(238, 71%, 59%)
HSVhsv(238, 65%, 88%)
CMYKcmyk(65.3%, 62.7%, 0%, 11.8%)
CIE-LABlab(43.35, 41.06, -72.52)
CIE-LCHlch(43.35, 83.34, 299.52°)
OKLaboklab(52.83% 0.0173 -0.2091)
OKLCHoklch(52.83% 0.21 274.7)
XYZxyz(19.8983, 13.3948, 72.7564)
Luminance0.1340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E54E1 #E1DB4E
analogous
#4E9EE1 #4E54E1 #924EE1
triadic
#4E54E1 #E14E54 #54E14E
tetradic
#4E54E1 #E14E9E #E1DB4E #4EE192
square
#4E54E1 #E14E9E #E1DB4E #4EE192
split-complementary
#4E54E1 #E1924E #9EE14E
monochromatic
#1A1F9A #232ACF #4E54E1 #8287EA #B7B9F3

Accessibility & contrast

On white

5.71
#4E54E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#4E54E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E54E1
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E54E1#FFFFFF#000000##FFFFFF
##4E54E11.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE6
Deuteranopia (green-blind)
#0060DE
Tritanopia (blue-blind)
#007893
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4e54e1;
/* rgb */ color: rgb(78, 84, 225);
/* oklch */ color: oklch(52.8% 0.210 274.7);
Tailwind
colors: {
  custom: {
    50: '#9084eb',
    500: '#4e54e1',
    950: '#000000',
  },
}
SCSS
$custom: #4e54e1;
$custom-light: #9084eb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e54e1",
  "rgb": {
    "r": 78,
    "g": 84,
    "b": 225
  },
  "hsl": {
    "h": 237.551,
    "s": 71.014,
    "l": 59.412
  },
  "oklch": {
    "l": 0.52834,
    "c": 0.20984,
    "h": 274.7
  },
  "luminance": 0.13397
}

Semantic roles & 50–950 ramp

primary
#4E54E1
secondary
#E2E0A9
accent
#E63AEE
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #4E54E1

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

Preview Lab → · Contrast checker → · Palette generator →

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