#4E51B9#4E51B9

#4E51B9 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.1% C 0.161 H 277.5°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#4E51B9
RGBrgb(78, 81, 185)
HSLhsl(238, 43%, 52%)
HSVhsv(238, 58%, 73%)
CMYKcmyk(57.8%, 56.2%, 0%, 27.5%)
CIE-LABlab(39.59, 29.61, -55.55)
CIE-LCHlch(39.59, 62.95, 298.06°)
OKLaboklab(49.1% 0.0208 -0.1593)
OKLCHoklch(49.1% 0.161 277.5)
XYZxyz(14.8385, 11.0063, 47.2320)
Luminance0.1101 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51B9 #B9B64E
analogous
#4E87B9 #4E51B9 #814EB9
triadic
#4E51B9 #B94E51 #51B94E
tetradic
#4E51B9 #B94E87 #B9B64E #4EB981
square
#4E51B9 #B94E87 #B9B64E #4EB981
split-complementary
#4E51B9 #B9814E #87B94E
monochromatic
#282A65 #393C91 #4E51B9 #7A7CCA #A6A7DC

Accessibility & contrast

On white

6.56
#4E51B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#4E51B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51B9
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51B9#FFFFFF#000000##FFFFFF
##4E51B91.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BD
Deuteranopia (green-blind)
#0059B7
Tritanopia (blue-blind)
#09697D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4e51b9;
/* rgb */ color: rgb(78, 81, 185);
/* oklch */ color: oklch(49.1% 0.161 277.5);
Tailwind
colors: {
  custom: {
    50: '#8982cf',
    500: '#4e51b9',
    950: '#000000',
  },
}
SCSS
$custom: #4e51b9;
$custom-light: #8982cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51b9",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 185
  },
  "hsl": {
    "h": 238.318,
    "s": 43.32,
    "l": 51.569
  },
  "oklch": {
    "l": 0.49104,
    "c": 0.16065,
    "h": 277.5
  },
  "luminance": 0.11007
}

Semantic roles & 50–950 ramp

primary
#4E51B9
secondary
#C9C89A
accent
#D055D3
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A14
muted
#7D7C82

Preview Lab

Preview with #4E51B9

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

Preview Lab → · Contrast checker → · Palette generator →

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