#4E54AB#4E54AB

#4E54AB is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.7% C 0.137 H 277.1°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#4E54AB
RGBrgb(78, 84, 171)
HSLhsl(236, 37%, 49%)
HSVhsv(236, 54%, 67%)
CMYKcmyk(54.4%, 50.9%, 0%, 32.9%)
CIE-LABlab(39.41, 23.07, -47.59)
CIE-LCHlch(39.41, 52.88, 295.86°)
OKLaboklab(48.67% 0.0168 -0.1358)
OKLCHoklch(48.67% 0.137 277.1)
XYZxyz(13.6606, 10.8997, 39.9042)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E54AB #ABA54E
analogous
#4E83AB #4E54AB #774EAB
triadic
#4E54AB #AB4E54 #54AB4E
tetradic
#4E54AB #AB4E83 #ABA54E #4EAB77
square
#4E54AB #AB4E83 #ABA54E #4EAB77
split-complementary
#4E54AB #AB774E #83AB4E
monochromatic
#282B57 #3B3F81 #4E54AB #767BC0 #A0A3D4

Accessibility & contrast

On white

6.60
#4E54AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#4E54AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E54AB
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E54AB#FFFFFF#000000##FFFFFF
##4E54AB1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2861AE
Deuteranopia (green-blind)
#1C59A9
Tritanopia (blue-blind)
#226777
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4e54ab;
/* rgb */ color: rgb(78, 84, 171);
/* oklch */ color: oklch(48.7% 0.137 277.1);
Tailwind
colors: {
  custom: {
    50: '#8784c4',
    500: '#4e54ab',
    950: '#000000',
  },
}
SCSS
$custom: #4e54ab;
$custom-light: #8784c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e54ab",
  "rgb": {
    "r": 78,
    "g": 84,
    "b": 171
  },
  "hsl": {
    "h": 236.129,
    "s": 37.349,
    "l": 48.824
  },
  "oklch": {
    "l": 0.48666,
    "c": 0.13688,
    "h": 277.1
  },
  "luminance": 0.10901
}

Semantic roles & 50–950 ramp

primary
#4E54AB
secondary
#C1BE94
accent
#C65ACD
background
#F8F8FC
surface
#F0EFF8
border
#CBCAD1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #4E54AB

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

Preview Lab → · Contrast checker → · Palette generator →

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