#4E51CA#4E51CA

#4E51CA is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.4% C 0.184 H 276.5°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#4E51CA
RGBrgb(78, 81, 202)
HSLhsl(239, 54%, 55%)
HSVhsv(239, 61%, 79%)
CMYKcmyk(61.4%, 59.9%, 0%, 20.8%)
CIE-LABlab(40.84, 35.26, -63.42)
CIE-LCHlch(40.84, 72.56, 299.07°)
OKLaboklab(50.43% 0.0208 -0.1824)
OKLCHoklch(50.43% 0.184 276.5)
XYZxyz(16.7415, 11.7675, 57.2548)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51CA #CAC74E
analogous
#4E8FCA #4E51CA #894ECA
triadic
#4E51CA #CA4E51 #51CA4E
tetradic
#4E51CA #CA4E8F #CAC74E #4ECA89
square
#4E51CA #CA4E8F #CAC74E #4ECA89
split-complementary
#4E51CA #CA894E #8FCA4E
monochromatic
#242679 #3235A8 #4E51CA #7D7FD8 #ACAEE6

Accessibility & contrast

On white

6.26
#4E51CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#4E51CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51CA
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51CA#FFFFFF#000000##FFFFFF
##4E51CA1.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CE
Deuteranopia (green-blind)
#005BC8
Tritanopia (blue-blind)
#006F86
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4e51ca;
/* rgb */ color: rgb(78, 81, 202);
/* oklch */ color: oklch(50.4% 0.184 276.5);
Tailwind
colors: {
  custom: {
    50: '#8c82db',
    500: '#4e51ca',
    950: '#000000',
  },
}
SCSS
$custom: #4e51ca;
$custom-light: #8c82db;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51ca",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 238.548,
    "s": 53.913,
    "l": 54.902
  },
  "oklch": {
    "l": 0.50428,
    "c": 0.18361,
    "h": 276.5
  },
  "luminance": 0.11769
}

Semantic roles & 50–950 ramp

primary
#4E51CA
secondary
#D4D3A0
accent
#DA4BDD
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4E51CA

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

Preview Lab → · Contrast checker → · Palette generator →

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