#4E51B3#4E51B3

#4E51B3 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.7% C 0.152 H 277.8°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#4E51B3
RGBrgb(78, 81, 179)
HSLhsl(238, 40%, 50%)
HSVhsv(238, 56%, 70%)
CMYKcmyk(56.4%, 54.7%, 0%, 29.8%)
CIE-LABlab(39.17, 27.62, -52.70)
CIE-LCHlch(39.17, 59.50, 297.66°)
OKLaboklab(48.66% 0.0207 -0.1509)
OKLCHoklch(48.66% 0.152 277.8)
XYZxyz(14.2184, 10.7583, 43.9664)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51B3 #B3B04E
analogous
#4E83B3 #4E51B3 #7D4EB3
triadic
#4E51B3 #B34E51 #51B34E
tetradic
#4E51B3 #B34E83 #B3B04E #4EB37D
square
#4E51B3 #B34E83 #B3B04E #4EB37D
split-complementary
#4E51B3 #B37D4E #83B34E
monochromatic
#282A5E #3B3D89 #4E51B3 #797BC5 #A4A5D8

Accessibility & contrast

On white

6.66
#4E51B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#4E51B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51B3
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51B3#FFFFFF#000000##FFFFFF
##4E51B31.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1260B6
Deuteranopia (green-blind)
#0058B1
Tritanopia (blue-blind)
#17687A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4e51b3;
/* rgb */ color: rgb(78, 81, 179);
/* oklch */ color: oklch(48.7% 0.152 277.8);
Tailwind
colors: {
  custom: {
    50: '#8881ca',
    500: '#4e51b3',
    950: '#000000',
  },
}
SCSS
$custom: #4e51b3;
$custom-light: #8881ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51b3",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 179
  },
  "hsl": {
    "h": 238.218,
    "s": 39.921,
    "l": 50.392
  },
  "oklch": {
    "l": 0.48656,
    "c": 0.15232,
    "h": 277.8
  },
  "luminance": 0.10759
}

Semantic roles & 50–950 ramp

primary
#4E51B3
secondary
#C5C498
accent
#CC58D0
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #4E51B3

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

Preview Lab → · Contrast checker → · Palette generator →

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