#4E51ED#4E51ED

#4E51ED is a mid, highly saturated blue. Relative luminance 0.136; OKLCH L 53.4% C 0.228 H 274.6°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#4E51ED
RGBrgb(78, 81, 237)
HSLhsl(239, 82%, 62%)
HSVhsv(239, 67%, 93%)
CMYKcmyk(67.1%, 65.8%, 0%, 7.1%)
CIE-LABlab(43.68, 46.78, -78.78)
CIE-LCHlch(43.68, 91.62, 300.70°)
OKLaboklab(53.38% 0.0184 -0.2275)
OKLCHoklch(53.38% 0.228 274.6)
XYZxyz(21.3653, 13.6170, 81.6068)
Luminance0.1362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51ED #EDEA4E
analogous
#4EA1ED #4E51ED #9B4EED
triadic
#4E51ED #ED4E51 #51ED4E
tetradic
#4E51ED #ED4EA1 #EDEA4E #4EED9B
square
#4E51ED #ED4EA1 #EDEA4E #4EED9B
split-complementary
#4E51ED #ED9B4E #A1ED4E
monochromatic
#1215AF #171BE6 #4E51ED #8688F3 #BDBEF8

Accessibility & contrast

On white

5.64
#4E51ED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#4E51ED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51ED
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51ED#FFFFFF#000000##FFFFFF
##4E51ED1.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FF2
Deuteranopia (green-blind)
#0060EA
Tritanopia (blue-blind)
#007A98
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #4e51ed;
/* rgb */ color: rgb(78, 81, 237);
/* oklch */ color: oklch(53.4% 0.228 274.6);
Tailwind
colors: {
  custom: {
    50: '#9382f4',
    500: '#4e51ed',
    950: '#000000',
  },
}
SCSS
$custom: #4e51ed;
$custom-light: #9382f4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51ed",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 237
  },
  "hsl": {
    "h": 238.868,
    "s": 81.538,
    "l": 61.765
  },
  "oklch": {
    "l": 0.53379,
    "c": 0.22823,
    "h": 274.6
  },
  "luminance": 0.13619
}

Semantic roles & 50–950 ramp

primary
#4E51ED
secondary
#E9E8AE
accent
#DA08DE
background
#F9F8FF
surface
#F2EFFE
border
#CCCAD6
text
#0F0A17
muted
#7E7C85

Preview Lab

Preview with #4E51ED

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

Preview Lab → · Contrast checker → · Palette generator →

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