#4E51DA#4E51DA

#4E51DA is a mid, highly saturated blue. Relative luminance 0.126; OKLCH L 51.7% C 0.204 H 275.6°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#4E51DA
RGBrgb(78, 81, 218)
HSLhsl(239, 65%, 58%)
HSVhsv(239, 64%, 85%)
CMYKcmyk(64.2%, 62.8%, 0%, 14.5%)
CIE-LABlab(42.10, 40.56, -70.58)
CIE-LCHlch(42.10, 81.40, 299.88°)
OKLaboklab(51.74% 0.02 -0.2034)
OKLCHoklch(51.74% 0.204 275.6)
XYZxyz(18.7351, 12.5649, 67.7540)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51DA #DAD74E
analogous
#4E97DA #4E51DA #914EDA
triadic
#4E51DA #DA4E51 #51DA4E
tetradic
#4E51DA #DA4E97 #DAD74E #4EDA91
square
#4E51DA #DA4E97 #DAD74E #4EDA91
split-complementary
#4E51DA #DA914E #97DA4E
monochromatic
#1E2090 #292CC2 #4E51DA #8183E5 #B3B5EF

Accessibility & contrast

On white

5.98
#4E51DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#4E51DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51DA
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51DA#FFFFFF#000000##FFFFFF
##4E51DA1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADE
Deuteranopia (green-blind)
#005DD7
Tritanopia (blue-blind)
#00748E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4e51da;
/* rgb */ color: rgb(78, 81, 218);
/* oklch */ color: oklch(51.7% 0.204 275.6);
Tailwind
colors: {
  custom: {
    50: '#8f82e6',
    500: '#4e51da',
    950: '#000000',
  },
}
SCSS
$custom: #4e51da;
$custom-light: #8f82e6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51da",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 218
  },
  "hsl": {
    "h": 238.714,
    "s": 65.421,
    "l": 58.039
  },
  "oklch": {
    "l": 0.51743,
    "c": 0.20442,
    "h": 275.6
  },
  "luminance": 0.12567
}

Semantic roles & 50–950 ramp

primary
#4E51DA
secondary
#DEDDA6
accent
#E53FE8
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4E51DA

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

Preview Lab → · Contrast checker → · Palette generator →

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