#4E54B2#4E54B2

#4E54B2 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.2% C 0.147 H 276.8°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#4E54B2
RGBrgb(78, 84, 178)
HSLhsl(236, 39%, 50%)
HSVhsv(236, 56%, 70%)
CMYKcmyk(56.2%, 52.8%, 0%, 30.2%)
CIE-LABlab(39.87, 25.39, -50.98)
CIE-LCHlch(39.87, 56.96, 296.47°)
OKLaboklab(49.16% 0.0174 -0.1458)
OKLCHoklch(49.16% 0.147 276.8)
XYZxyz(14.3455, 11.1737, 43.5117)
Luminance0.1118 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E54B2 #B2AC4E
analogous
#4E86B2 #4E54B2 #7A4EB2
triadic
#4E54B2 #B24E54 #54B24E
tetradic
#4E54B2 #B24E86 #B2AC4E #4EB27A
square
#4E54B2 #B24E86 #B2AC4E #4EB27A
split-complementary
#4E54B2 #B27A4E #86B24E
monochromatic
#292C5D #3B4088 #4E54B2 #797DC5 #A3A6D7

Accessibility & contrast

On white

6.49
#4E54B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#4E54B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E54B2
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E54B2#FFFFFF#000000##FFFFFF
##4E54B21.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F62B5
Deuteranopia (green-blind)
#095AB0
Tritanopia (blue-blind)
#18697B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4e54b2;
/* rgb */ color: rgb(78, 84, 178);
/* oklch */ color: oklch(49.2% 0.147 276.8);
Tailwind
colors: {
  custom: {
    50: '#8884ca',
    500: '#4e54b2',
    950: '#000000',
  },
}
SCSS
$custom: #4e54b2;
$custom-light: #8884ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4e54b2",
  "rgb": {
    "r": 78,
    "g": 84,
    "b": 178
  },
  "hsl": {
    "h": 236.4,
    "s": 39.37,
    "l": 50.196
  },
  "oklch": {
    "l": 0.4916,
    "c": 0.14685,
    "h": 276.8
  },
  "luminance": 0.11175
}

Semantic roles & 50–950 ramp

primary
#4E54B2
secondary
#C4C298
accent
#C859CF
background
#F8F8FC
surface
#F0EFF8
border
#CBCAD1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #4E54B2

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

Preview Lab → · Contrast checker → · Palette generator →

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