#4E51BD#4E51BD

#4E51BD is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.4% C 0.166 H 277.2°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#4E51BD
RGBrgb(78, 81, 189)
HSLhsl(238, 46%, 52%)
HSVhsv(238, 59%, 74%)
CMYKcmyk(58.7%, 57.1%, 0%, 25.9%)
CIE-LABlab(39.88, 30.94, -57.43)
CIE-LCHlch(39.88, 65.23, 298.31°)
OKLaboklab(49.41% 0.0209 -0.1648)
OKLCHoklch(49.41% 0.166 277.2)
XYZxyz(15.2667, 11.1776, 49.4872)
Luminance0.1118 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51BD #BDBA4E
analogous
#4E89BD #4E51BD #824EBD
triadic
#4E51BD #BD4E51 #51BD4E
tetradic
#4E51BD #BD4E89 #BDBA4E #4EBD82
square
#4E51BD #BD4E89 #BDBA4E #4EBD82
split-complementary
#4E51BD #BD824E #89BD4E
monochromatic
#272969 #383A96 #4E51BD #7B7DCE #A7A9DE

Accessibility & contrast

On white

6.49
#4E51BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#4E51BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51BD
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51BD#FFFFFF#000000##FFFFFF
##4E51BD1.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C1
Deuteranopia (green-blind)
#0059BB
Tritanopia (blue-blind)
#006B7F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4e51bd;
/* rgb */ color: rgb(78, 81, 189);
/* oklch */ color: oklch(49.4% 0.166 277.2);
Tailwind
colors: {
  custom: {
    50: '#8a82d2',
    500: '#4e51bd',
    950: '#000000',
  },
}
SCSS
$custom: #4e51bd;
$custom-light: #8a82d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51bd",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 189
  },
  "hsl": {
    "h": 238.378,
    "s": 45.679,
    "l": 52.353
  },
  "oklch": {
    "l": 0.49408,
    "c": 0.16613,
    "h": 277.2
  },
  "luminance": 0.11179
}

Semantic roles & 50–950 ramp

primary
#4E51BD
secondary
#CCCA9B
accent
#D252D5
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0D0A14
muted
#7D7C83

Preview Lab

Preview with #4E51BD

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

Preview Lab → · Contrast checker → · Palette generator →

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