#4E51DB#4E51DB

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

Color values

HEX#4E51DB
RGBrgb(78, 81, 219)
HSLhsl(239, 66%, 58%)
HSVhsv(239, 64%, 86%)
CMYKcmyk(64.4%, 63%, 0%, 14.1%)
CIE-LABlab(42.18, 40.89, -71.01)
CIE-LCHlch(42.18, 81.94, 299.93°)
OKLaboklab(51.83% 0.02 -0.2047)
OKLCHoklch(51.83% 0.206 275.6)
XYZxyz(18.8663, 12.6174, 68.4453)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51DB #DBD84E
analogous
#4E98DB #4E51DB #914EDB
triadic
#4E51DB #DB4E51 #51DB4E
tetradic
#4E51DB #DB4E98 #DBD84E #4EDB91
square
#4E51DB #DB4E98 #DBD84E #4EDB91
split-complementary
#4E51DB #DB914E #98DB4E
monochromatic
#1E2091 #282BC4 #4E51DB #8183E5 #B4B5F0

Accessibility & contrast

On white

5.96
#4E51DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#4E51DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51DB
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51DB#FFFFFF#000000##FFFFFF
##4E51DB1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADF
Deuteranopia (green-blind)
#005DD8
Tritanopia (blue-blind)
#00748E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4e51db;
/* rgb */ color: rgb(78, 81, 219);
/* oklch */ color: oklch(51.8% 0.206 275.6);
Tailwind
colors: {
  custom: {
    50: '#8f82e7',
    500: '#4e51db',
    950: '#000000',
  },
}
SCSS
$custom: #4e51db;
$custom-light: #8f82e7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51db",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 238.723,
    "s": 66.197,
    "l": 58.235
  },
  "oklch": {
    "l": 0.51827,
    "c": 0.2057,
    "h": 275.6
  },
  "luminance": 0.12619
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E51DB

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

Preview Lab → · Contrast checker → · Palette generator →

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