#4E51D6#4E51D6

#4E51D6 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.4% C 0.199 H 275.8°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#4E51D6
RGBrgb(78, 81, 214)
HSLhsl(239, 62%, 57%)
HSVhsv(239, 64%, 84%)
CMYKcmyk(63.6%, 62.1%, 0%, 16.1%)
CIE-LABlab(41.78, 39.24, -68.81)
CIE-LCHlch(41.78, 79.21, 299.69°)
OKLaboklab(51.41% 0.0203 -0.1983)
OKLCHoklch(51.41% 0.199 275.8)
XYZxyz(18.2179, 12.3581, 65.0306)
Luminance0.1236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51D6 #D6D34E
analogous
#4E95D6 #4E51D6 #8F4ED6
triadic
#4E51D6 #D64E51 #51D64E
tetradic
#4E51D6 #D64E95 #D6D34E #4ED68F
square
#4E51D6 #D64E95 #D6D34E #4ED68F
split-complementary
#4E51D6 #D68F4E #95D64E
monochromatic
#20228A #2B2FBB #4E51D6 #8082E2 #B1B3ED

Accessibility & contrast

On white

6.05
#4E51D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#4E51D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51D6
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51D6#FFFFFF#000000##FFFFFF
##4E51D61.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DA
Deuteranopia (green-blind)
#005DD3
Tritanopia (blue-blind)
#00738C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4e51d6;
/* rgb */ color: rgb(78, 81, 214);
/* oklch */ color: oklch(51.4% 0.199 275.8);
Tailwind
colors: {
  custom: {
    50: '#8e82e4',
    500: '#4e51d6',
    950: '#000000',
  },
}
SCSS
$custom: #4e51d6;
$custom-light: #8e82e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51d6",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 214
  },
  "hsl": {
    "h": 238.676,
    "s": 62.385,
    "l": 57.255
  },
  "oklch": {
    "l": 0.51408,
    "c": 0.19929,
    "h": 275.8
  },
  "luminance": 0.1236
}

Semantic roles & 50–950 ramp

primary
#4E51D6
secondary
#DBDAA4
accent
#E242E5
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4E51D6

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

Preview Lab → · Contrast checker → · Palette generator →

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