#4E51D2#4E51D2

#4E51D2 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 51.1% C 0.194 H 276.1°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#4E51D2
RGBrgb(78, 81, 210)
HSLhsl(239, 59%, 56%)
HSVhsv(239, 63%, 82%)
CMYKcmyk(62.9%, 61.4%, 0%, 17.6%)
CIE-LABlab(41.46, 37.91, -67.03)
CIE-LCHlch(41.46, 77.01, 299.49°)
OKLaboklab(51.08% 0.0205 -0.193)
OKLCHoklch(51.08% 0.194 276.1)
XYZxyz(17.7134, 12.1563, 62.3732)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51D2 #D2CF4E
analogous
#4E93D2 #4E51D2 #8D4ED2
triadic
#4E51D2 #D24E51 #51D24E
tetradic
#4E51D2 #D24E93 #D2CF4E #4ED28D
square
#4E51D2 #D24E93 #D2CF4E #4ED28D
split-complementary
#4E51D2 #D28D4E #93D24E
monochromatic
#222484 #2E31B5 #4E51D2 #7F81DE #B0B1EB

Accessibility & contrast

On white

6.12
#4E51D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#4E51D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51D2
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51D2#FFFFFF#000000##FFFFFF
##4E51D21.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D6
Deuteranopia (green-blind)
#005CCF
Tritanopia (blue-blind)
#00718A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4e51d2;
/* rgb */ color: rgb(78, 81, 210);
/* oklch */ color: oklch(51.1% 0.194 276.1);
Tailwind
colors: {
  custom: {
    50: '#8d82e1',
    500: '#4e51d2',
    950: '#000000',
  },
}
SCSS
$custom: #4e51d2;
$custom-light: #8d82e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51d2",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 210
  },
  "hsl": {
    "h": 238.636,
    "s": 59.459,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51077,
    "c": 0.19411,
    "h": 276.1
  },
  "luminance": 0.12158
}

Semantic roles & 50–950 ramp

primary
#4E51D2
secondary
#D9D8A3
accent
#DF45E3
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4E51D2

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

Preview Lab → · Contrast checker → · Palette generator →

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