#4E56B2#4E56B2

#4E56B2 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.5% C 0.144 H 276.1°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#4E56B2
RGBrgb(78, 86, 178)
HSLhsl(235, 39%, 50%)
HSVhsv(235, 56%, 70%)
CMYKcmyk(56.2%, 51.7%, 0%, 30.2%)
CIE-LABlab(40.39, 24.12, -50.15)
CIE-LCHlch(40.39, 55.64, 295.68°)
OKLaboklab(49.55% 0.0152 -0.1433)
OKLCHoklch(49.55% 0.144 276.1)
XYZxyz(14.5030, 11.4886, 43.5641)
Luminance0.1149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E56B2 #B2AA4E
analogous
#4E88B2 #4E56B2 #784EB2
triadic
#4E56B2 #B24E56 #56B24E
tetradic
#4E56B2 #B24E88 #B2AA4E #4EB278
square
#4E56B2 #B24E88 #B2AA4E #4EB278
split-complementary
#4E56B2 #B2784E #88B24E
monochromatic
#292D5D #3B4188 #4E56B2 #797FC5 #A3A7D7

Accessibility & contrast

On white

6.37
#4E56B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4E56B2
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E56B2#FFFFFF#000000##FFFFFF
##4E56B21.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2563B5
Deuteranopia (green-blind)
#135BB0
Tritanopia (blue-blind)
#186B7C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4e56b2;
/* rgb */ color: rgb(78, 86, 178);
/* oklch */ color: oklch(49.5% 0.144 276.1);
Tailwind
colors: {
  custom: {
    50: '#8885ca',
    500: '#4e56b2',
    950: '#000000',
  },
}
SCSS
$custom: #4e56b2;
$custom-light: #8885ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4e56b2",
  "rgb": {
    "r": 78,
    "g": 86,
    "b": 178
  },
  "hsl": {
    "h": 235.2,
    "s": 39.37,
    "l": 50.196
  },
  "oklch": {
    "l": 0.4955,
    "c": 0.14414,
    "h": 276.1
  },
  "luminance": 0.1149
}

Semantic roles & 50–950 ramp

primary
#4E56B2
secondary
#C4C198
accent
#C659CF
background
#F8F8FC
surface
#F0EFF8
border
#CBCAD1
text
#0C0B13
muted
#7D7C82

Preview Lab

Preview with #4E56B2

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

Preview Lab → · Contrast checker → · Palette generator →

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