#4E56B1#4E56B1

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

Color values

HEX#4E56B1
RGBrgb(78, 86, 177)
HSLhsl(235, 39%, 50%)
HSVhsv(235, 56%, 69%)
CMYKcmyk(55.9%, 51.4%, 0%, 30.6%)
CIE-LABlab(40.33, 23.78, -49.66)
CIE-LCHlch(40.33, 55.06, 295.59°)
OKLaboklab(49.48% 0.0151 -0.1419)
OKLCHoklch(49.48% 0.143 276.1)
XYZxyz(14.4029, 11.4486, 43.0373)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E56B1 #B1A94E
analogous
#4E87B1 #4E56B1 #784EB1
triadic
#4E56B1 #B14E56 #56B14E
tetradic
#4E56B1 #B14E87 #B1A94E #4EB178
square
#4E56B1 #B14E87 #B1A94E #4EB178
split-complementary
#4E56B1 #B1784E #87B14E
monochromatic
#292D5C #3B4187 #4E56B1 #787FC4 #A3A7D6

Accessibility & contrast

On white

6.38
#4E56B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#4E56B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E56B1
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E56B1#FFFFFF#000000##FFFFFF
##4E56B11.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2663B4
Deuteranopia (green-blind)
#165BAF
Tritanopia (blue-blind)
#196A7B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4e56b1;
/* rgb */ color: rgb(78, 86, 177);
/* oklch */ color: oklch(49.5% 0.143 276.1);
Tailwind
colors: {
  custom: {
    50: '#8885c9',
    500: '#4e56b1',
    950: '#000000',
  },
}
SCSS
$custom: #4e56b1;
$custom-light: #8885c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e56b1",
  "rgb": {
    "r": 78,
    "g": 86,
    "b": 177
  },
  "hsl": {
    "h": 235.152,
    "s": 38.824,
    "l": 50
  },
  "oklch": {
    "l": 0.4948,
    "c": 0.14272,
    "h": 276.1
  },
  "luminance": 0.1145
}

Semantic roles & 50–950 ramp

primary
#4E56B1
secondary
#C4C097
accent
#C559CF
background
#F8F8FC
surface
#F0EFF8
border
#CBCAD1
text
#0C0B13
muted
#7D7C82

Preview Lab

Preview with #4E56B1

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

Preview Lab → · Contrast checker → · Palette generator →

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