#4E56BA#4E56BA

#4E56BA is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.1% C 0.155 H 275.8°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#4E56BA
RGBrgb(78, 86, 186)
HSLhsl(236, 44%, 52%)
HSVhsv(236, 58%, 73%)
CMYKcmyk(58.1%, 53.8%, 0%, 27.1%)
CIE-LABlab(40.93, 26.79, -53.98)
CIE-LCHlch(40.93, 60.26, 296.40°)
OKLaboklab(50.12% 0.0158 -0.1546)
OKLCHoklch(50.12% 0.155 275.8)
XYZxyz(15.3297, 11.8193, 47.9184)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E56BA #BAB24E
analogous
#4E8CBA #4E56BA #7C4EBA
triadic
#4E56BA #BA4E56 #56BA4E
tetradic
#4E56BA #BA4E8C #BAB24E #4EBA7C
square
#4E56BA #BA4E8C #BAB24E #4EBA7C
split-complementary
#4E56BA #BA7C4E #8CBA4E
monochromatic
#282C66 #393F92 #4E56BA #7A80CB #A6AADC

Accessibility & contrast

On white

6.24
#4E56BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#4E56BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E56BA
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E56BA#FFFFFF#000000##FFFFFF
##4E56BA1.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1865BD
Deuteranopia (green-blind)
#005CB8
Tritanopia (blue-blind)
#026D7F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4e56ba;
/* rgb */ color: rgb(78, 86, 186);
/* oklch */ color: oklch(50.1% 0.155 275.8);
Tailwind
colors: {
  custom: {
    50: '#8985cf',
    500: '#4e56ba',
    950: '#000000',
  },
}
SCSS
$custom: #4e56ba;
$custom-light: #8985cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e56ba",
  "rgb": {
    "r": 78,
    "g": 86,
    "b": 186
  },
  "hsl": {
    "h": 235.556,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.50124,
    "c": 0.15541,
    "h": 275.8
  },
  "luminance": 0.1182
}

Semantic roles & 50–950 ramp

primary
#4E56BA
secondary
#CAC69A
accent
#CA54D4
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0C0B14
muted
#7D7C82

Preview Lab

Preview with #4E56BA

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

Preview Lab → · Contrast checker → · Palette generator →

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