#4E51D4#4E51D4

#4E51D4 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.2% C 0.197 H 275.9°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#4E51D4
RGBrgb(78, 81, 212)
HSLhsl(239, 61%, 57%)
HSVhsv(239, 63%, 83%)
CMYKcmyk(63.2%, 61.8%, 0%, 16.9%)
CIE-LABlab(41.62, 38.57, -67.92)
CIE-LCHlch(41.62, 78.11, 299.59°)
OKLaboklab(51.24% 0.0204 -0.1956)
OKLCHoklch(51.24% 0.197 275.9)
XYZxyz(17.9641, 12.2565, 63.6937)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51D4 #D4D14E
analogous
#4E94D4 #4E51D4 #8E4ED4
triadic
#4E51D4 #D44E51 #51D44E
tetradic
#4E51D4 #D44E94 #D4D14E #4ED48E
square
#4E51D4 #D44E94 #D4D14E #4ED48E
split-complementary
#4E51D4 #D48E4E #94D44E
monochromatic
#212387 #2D30B8 #4E51D4 #7F81E0 #B0B2EC

Accessibility & contrast

On white

6.08
#4E51D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#4E51D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51D4
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51D4#FFFFFF#000000##FFFFFF
##4E51D41.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D8
Deuteranopia (green-blind)
#005CD1
Tritanopia (blue-blind)
#00728B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4e51d4;
/* rgb */ color: rgb(78, 81, 212);
/* oklch */ color: oklch(51.2% 0.197 275.9);
Tailwind
colors: {
  custom: {
    50: '#8e82e2',
    500: '#4e51d4',
    950: '#000000',
  },
}
SCSS
$custom: #4e51d4;
$custom-light: #8e82e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51d4",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 212
  },
  "hsl": {
    "h": 238.657,
    "s": 60.909,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51242,
    "c": 0.19671,
    "h": 275.9
  },
  "luminance": 0.12258
}

Semantic roles & 50–950 ramp

primary
#4E51D4
secondary
#DAD9A4
accent
#E044E4
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A15
muted
#7E7C84

Preview Lab

Preview with #4E51D4

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

Preview Lab → · Contrast checker → · Palette generator →

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