#4E51C8#4E51C8

#4E51C8 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.3% C 0.181 H 276.6°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#4E51C8
RGBrgb(78, 81, 200)
HSLhsl(239, 53%, 55%)
HSVhsv(239, 61%, 78%)
CMYKcmyk(61%, 59.5%, 0%, 21.6%)
CIE-LABlab(40.69, 34.60, -62.51)
CIE-LCHlch(40.69, 71.45, 298.96°)
OKLaboklab(50.27% 0.0208 -0.1797)
OKLCHoklch(50.27% 0.181 276.6)
XYZxyz(16.5063, 11.6734, 56.0157)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51C8 #C8C54E
analogous
#4E8EC8 #4E51C8 #884EC8
triadic
#4E51C8 #C84E51 #51C84E
tetradic
#4E51C8 #C84E8E #C8C54E #4EC888
square
#4E51C8 #C84E8E #C8C54E #4EC888
split-complementary
#4E51C8 #C8884E #8EC84E
monochromatic
#252777 #3336A5 #4E51C8 #7D7FD7 #ABADE5

Accessibility & contrast

On white

6.30
#4E51C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#4E51C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51C8
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51C8#FFFFFF#000000##FFFFFF
##4E51C81.006.303.346.30
#FFFFFF6.301.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CC
Deuteranopia (green-blind)
#005BC6
Tritanopia (blue-blind)
#006E85
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4e51c8;
/* rgb */ color: rgb(78, 81, 200);
/* oklch */ color: oklch(50.3% 0.181 276.6);
Tailwind
colors: {
  custom: {
    50: '#8c82da',
    500: '#4e51c8',
    950: '#000000',
  },
}
SCSS
$custom: #4e51c8;
$custom-light: #8c82da;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51c8",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 200
  },
  "hsl": {
    "h": 238.525,
    "s": 52.586,
    "l": 54.51
  },
  "oklch": {
    "l": 0.50268,
    "c": 0.18095,
    "h": 276.6
  },
  "luminance": 0.11675
}

Semantic roles & 50–950 ramp

primary
#4E51C8
secondary
#D3D19F
accent
#D84CDC
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4E51C8

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

Preview Lab → · Contrast checker → · Palette generator →

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