#4E51C4#4E51C4

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

Color values

HEX#4E51C4
RGBrgb(78, 81, 196)
HSLhsl(238, 50%, 54%)
HSVhsv(238, 60%, 77%)
CMYKcmyk(60.2%, 58.7%, 0%, 23.1%)
CIE-LABlab(40.39, 33.27, -60.68)
CIE-LCHlch(40.39, 69.20, 298.73°)
OKLaboklab(49.95% 0.0209 -0.1744)
OKLCHoklch(49.95% 0.176 276.8)
XYZxyz(16.0449, 11.4889, 53.5859)
Luminance0.1149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51C4 #C4C14E
analogous
#4E8CC4 #4E51C4 #864EC4
triadic
#4E51C4 #C44E51 #51C44E
tetradic
#4E51C4 #C44E8C #C4C14E #4EC486
square
#4E51C4 #C44E8C #C4C14E #4EC486
split-complementary
#4E51C4 #C4864E #8CC44E
monochromatic
#262872 #3538A0 #4E51C4 #7C7ED3 #AAABE3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E51C4#FFFFFF#000000##FFFFFF
##4E51C41.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)
#0064C8
Deuteranopia (green-blind)
#005AC2
Tritanopia (blue-blind)
#006D82
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4e51c4;
/* rgb */ color: rgb(78, 81, 196);
/* oklch */ color: oklch(50.0% 0.176 276.8);
Tailwind
colors: {
  custom: {
    50: '#8b82d7',
    500: '#4e51c4',
    950: '#000000',
  },
}
SCSS
$custom: #4e51c4;
$custom-light: #8b82d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51c4",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 196
  },
  "hsl": {
    "h": 238.475,
    "s": 50,
    "l": 53.725
  },
  "oklch": {
    "l": 0.49951,
    "c": 0.17561,
    "h": 276.8
  },
  "luminance": 0.1149
}

Semantic roles & 50–950 ramp

primary
#4E51C4
secondary
#D0CF9E
accent
#D64EDA
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #4E51C4

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

Preview Lab → · Contrast checker → · Palette generator →

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