#4E51CD#4E51CD

#4E51CD is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.7% C 0.188 H 276.3°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#4E51CD
RGBrgb(78, 81, 205)
HSLhsl(239, 56%, 55%)
HSVhsv(239, 62%, 80%)
CMYKcmyk(62%, 60.5%, 0%, 19.6%)
CIE-LABlab(41.07, 36.26, -64.78)
CIE-LCHlch(41.07, 74.24, 299.23°)
OKLaboklab(50.67% 0.0207 -0.1864)
OKLCHoklch(50.67% 0.188 276.3)
XYZxyz(17.1002, 11.9110, 59.1437)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51CD #CDCA4E
analogous
#4E90CD #4E51CD #8B4ECD
triadic
#4E51CD #CD4E51 #51CD4E
tetradic
#4E51CD #CD4E90 #CDCA4E #4ECD8B
square
#4E51CD #CD4E90 #CDCA4E #4ECD8B
split-complementary
#4E51CD #CD8B4E #90CD4E
monochromatic
#23257D #3134AD #4E51CD #7E80DA #ADAFE8

Accessibility & contrast

On white

6.21
#4E51CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#4E51CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51CD
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51CD#FFFFFF#000000##FFFFFF
##4E51CD1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D1
Deuteranopia (green-blind)
#005BCB
Tritanopia (blue-blind)
#007087
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4e51cd;
/* rgb */ color: rgb(78, 81, 205);
/* oklch */ color: oklch(50.7% 0.188 276.3);
Tailwind
colors: {
  custom: {
    50: '#8d82dd',
    500: '#4e51cd',
    950: '#000000',
  },
}
SCSS
$custom: #4e51cd;
$custom-light: #8d82dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51cd",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 238.583,
    "s": 55.947,
    "l": 55.49
  },
  "oklch": {
    "l": 0.50669,
    "c": 0.18757,
    "h": 276.3
  },
  "luminance": 0.11912
}

Semantic roles & 50–950 ramp

primary
#4E51CD
secondary
#D6D5A1
accent
#DC49DF
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4E51CD

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

Preview Lab → · Contrast checker → · Palette generator →

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