#4E51C0#4E51C0

#4E51C0 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.6% C 0.170 H 277.1°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#4E51C0
RGBrgb(78, 81, 192)
HSLhsl(238, 48%, 53%)
HSVhsv(238, 59%, 75%)
CMYKcmyk(59.4%, 57.8%, 0%, 24.7%)
CIE-LABlab(40.10, 31.94, -58.83)
CIE-LCHlch(40.10, 66.94, 298.50°)
OKLaboklab(49.64% 0.0209 -0.1689)
OKLCHoklch(49.64% 0.17 277.1)
XYZxyz(15.5957, 11.3092, 51.2200)
Luminance0.1131 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51C0 #C0BD4E
analogous
#4E8AC0 #4E51C0 #844EC0
triadic
#4E51C0 #C04E51 #51C04E
tetradic
#4E51C0 #C04E8A #C0BD4E #4EC084
square
#4E51C0 #C04E8A #C0BD4E #4EC084
split-complementary
#4E51C0 #C0844E #8AC04E
monochromatic
#27296D #37399A #4E51C0 #7B7DD0 #A8AAE0

Accessibility & contrast

On white

6.44
#4E51C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#4E51C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51C0
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51C0#FFFFFF#000000##FFFFFF
##4E51C01.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C4
Deuteranopia (green-blind)
#005ABE
Tritanopia (blue-blind)
#006B80
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4e51c0;
/* rgb */ color: rgb(78, 81, 192);
/* oklch */ color: oklch(49.6% 0.170 277.1);
Tailwind
colors: {
  custom: {
    50: '#8a82d4',
    500: '#4e51c0',
    950: '#000000',
  },
}
SCSS
$custom: #4e51c0;
$custom-light: #8a82d4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51c0",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 192
  },
  "hsl": {
    "h": 238.421,
    "s": 47.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49639,
    "c": 0.17021,
    "h": 277.1
  },
  "luminance": 0.1131
}

Semantic roles & 50–950 ramp

primary
#4E51C0
secondary
#CECC9C
accent
#D451D7
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #4E51C0

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

Preview Lab → · Contrast checker → · Palette generator →

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