#4E51D9#4E51D9

#4E51D9 is a mid, highly saturated blue. Relative luminance 0.125; OKLCH L 51.7% C 0.203 H 275.7°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#4E51D9
RGBrgb(78, 81, 217)
HSLhsl(239, 65%, 58%)
HSVhsv(239, 64%, 85%)
CMYKcmyk(64.1%, 62.7%, 0%, 14.9%)
CIE-LABlab(42.02, 40.23, -70.13)
CIE-LCHlch(42.02, 80.85, 299.84°)
OKLaboklab(51.66% 0.0201 -0.2021)
OKLCHoklch(51.66% 0.203 275.7)
XYZxyz(18.6046, 12.5127, 67.0670)
Luminance0.1251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51D9 #D9D64E
analogous
#4E96D9 #4E51D9 #904ED9
triadic
#4E51D9 #D94E51 #51D94E
tetradic
#4E51D9 #D94E96 #D9D64E #4ED990
square
#4E51D9 #D94E96 #D9D64E #4ED990
split-complementary
#4E51D9 #D9904E #96D94E
monochromatic
#1F218E #292DC0 #4E51D9 #8083E4 #B3B4EF

Accessibility & contrast

On white

6.00
#4E51D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#4E51D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51D9
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51D9#FFFFFF#000000##FFFFFF
##4E51D91.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DD
Deuteranopia (green-blind)
#005DD6
Tritanopia (blue-blind)
#00738D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4e51d9;
/* rgb */ color: rgb(78, 81, 217);
/* oklch */ color: oklch(51.7% 0.203 275.7);
Tailwind
colors: {
  custom: {
    50: '#8f82e6',
    500: '#4e51d9',
    950: '#000000',
  },
}
SCSS
$custom: #4e51d9;
$custom-light: #8f82e6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51d9",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 217
  },
  "hsl": {
    "h": 238.705,
    "s": 64.651,
    "l": 57.843
  },
  "oklch": {
    "l": 0.51659,
    "c": 0.20315,
    "h": 275.7
  },
  "luminance": 0.12514
}

Semantic roles & 50–950 ramp

primary
#4E51D9
secondary
#DDDCA6
accent
#E440E8
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4E51D9

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

Preview Lab → · Contrast checker → · Palette generator →

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