#4E50B4#4E50B4

#4E50B4 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.5% C 0.155 H 278.1°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#4E50B4
RGBrgb(78, 80, 180)
HSLhsl(239, 40%, 51%)
HSVhsv(239, 57%, 71%)
CMYKcmyk(56.7%, 55.6%, 0%, 29.4%)
CIE-LABlab(38.99, 28.58, -53.59)
CIE-LCHlch(38.99, 60.74, 298.08°)
OKLaboklab(48.54% 0.0217 -0.1535)
OKLCHoklch(48.54% 0.155 278.1)
XYZxyz(14.2462, 10.6513, 44.4764)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E50B4 #B4B24E
analogous
#4E83B4 #4E50B4 #7F4EB4
triadic
#4E50B4 #B44E50 #50B44E
tetradic
#4E50B4 #B44E83 #B4B24E #4EB47F
square
#4E50B4 #B44E83 #B4B24E #4EB47F
split-complementary
#4E50B4 #B47F4E #83B44E
monochromatic
#28295F #3B3C8A #4E50B4 #797AC6 #A4A5D8

Accessibility & contrast

On white

6.71
#4E50B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#4E50B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E50B4
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E50B4#FFFFFF#000000##FFFFFF
##4E50B41.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0860B7
Deuteranopia (green-blind)
#0058B2
Tritanopia (blue-blind)
#16677A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4e50b4;
/* rgb */ color: rgb(78, 80, 180);
/* oklch */ color: oklch(48.5% 0.155 278.1);
Tailwind
colors: {
  custom: {
    50: '#8881cb',
    500: '#4e50b4',
    950: '#000000',
  },
}
SCSS
$custom: #4e50b4;
$custom-light: #8881cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e50b4",
  "rgb": {
    "r": 78,
    "g": 80,
    "b": 180
  },
  "hsl": {
    "h": 238.824,
    "s": 40.476,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48541,
    "c": 0.15505,
    "h": 278.1
  },
  "luminance": 0.10652
}

Semantic roles & 50–950 ramp

primary
#4E50B4
secondary
#C6C598
accent
#CE57D0
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #4E50B4

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

Preview Lab → · Contrast checker → · Palette generator →

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