#4E54BA#4E54BA

#4E54BA is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.7% C 0.158 H 276.5°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#4E54BA
RGBrgb(78, 84, 186)
HSLhsl(237, 44%, 52%)
HSVhsv(237, 58%, 73%)
CMYKcmyk(58.1%, 54.8%, 0%, 27.1%)
CIE-LABlab(40.42, 28.05, -54.80)
CIE-LCHlch(40.42, 61.56, 297.11°)
OKLaboklab(49.74% 0.0178 -0.157)
OKLCHoklch(49.74% 0.158 276.5)
XYZxyz(15.1723, 11.5044, 47.8659)
Luminance0.1151 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E54BA #BAB44E
analogous
#4E8ABA #4E54BA #7E4EBA
triadic
#4E54BA #BA4E54 #54BA4E
tetradic
#4E54BA #BA4E8A #BAB44E #4EBA7E
square
#4E54BA #BA4E8A #BAB44E #4EBA7E
split-complementary
#4E54BA #BA7E4E #8ABA4E
monochromatic
#282B66 #393E92 #4E54BA #7A7FCB #A6A9DC

Accessibility & contrast

On white

6.36
#4E54BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#4E54BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E54BA
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E54BA#FFFFFF#000000##FFFFFF
##4E54BA1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E64BE
Deuteranopia (green-blind)
#005BB8
Tritanopia (blue-blind)
#046C7F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4e54ba;
/* rgb */ color: rgb(78, 84, 186);
/* oklch */ color: oklch(49.7% 0.158 276.5);
Tailwind
colors: {
  custom: {
    50: '#8984cf',
    500: '#4e54ba',
    950: '#000000',
  },
}
SCSS
$custom: #4e54ba;
$custom-light: #8984cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e54ba",
  "rgb": {
    "r": 78,
    "g": 84,
    "b": 186
  },
  "hsl": {
    "h": 236.667,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.49742,
    "c": 0.15806,
    "h": 276.5
  },
  "luminance": 0.11506
}

Semantic roles & 50–950 ramp

primary
#4E54BA
secondary
#CAC79A
accent
#CD54D4
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0C0A14
muted
#7D7C82

Preview Lab

Preview with #4E54BA

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

Preview Lab → · Contrast checker → · Palette generator →

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