#4E51DF#4E51DF

#4E51DF is a mid, highly saturated blue. Relative luminance 0.128; OKLCH L 52.2% C 0.211 H 275.4°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#4E51DF
RGBrgb(78, 81, 223)
HSLhsl(239, 69%, 59%)
HSVhsv(239, 65%, 87%)
CMYKcmyk(65%, 63.7%, 0%, 12.5%)
CIE-LABlab(42.51, 42.20, -72.76)
CIE-LCHlch(42.51, 84.12, 300.11°)
OKLaboklab(52.17% 0.0197 -0.2099)
OKLCHoklch(52.17% 0.211 275.4)
XYZxyz(19.3992, 12.8306, 71.2520)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51DF #DFDC4E
analogous
#4E9ADF #4E51DF #944EDF
triadic
#4E51DF #DF4E51 #51DF4E
tetradic
#4E51DF #DF4E9A #DFDC4E #4EDF94
square
#4E51DF #DF4E9A #DFDC4E #4EDF94
split-complementary
#4E51DF #DF944E #9ADF4E
monochromatic
#1B1E97 #2528CB #4E51DF #8284E8 #B6B7F2

Accessibility & contrast

On white

5.89
#4E51DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#4E51DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51DF
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51DF#FFFFFF#000000##FFFFFF
##4E51DF1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE4
Deuteranopia (green-blind)
#005EDC
Tritanopia (blue-blind)
#007691
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4e51df;
/* rgb */ color: rgb(78, 81, 223);
/* oklch */ color: oklch(52.2% 0.211 275.4);
Tailwind
colors: {
  custom: {
    50: '#9082ea',
    500: '#4e51df',
    950: '#000000',
  },
}
SCSS
$custom: #4e51df;
$custom-light: #9082ea;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51df",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 223
  },
  "hsl": {
    "h": 238.759,
    "s": 69.378,
    "l": 59.02
  },
  "oklch": {
    "l": 0.52166,
    "c": 0.21078,
    "h": 275.4
  },
  "luminance": 0.12832
}

Semantic roles & 50–950 ramp

primary
#4E51DF
secondary
#E1E0A8
accent
#E93CEC
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4E51DF

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

Preview Lab → · Contrast checker → · Palette generator →

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