#4E51AA#4E51AA

#4E51AA is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.0% C 0.140 H 278.3°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#4E51AA
RGBrgb(78, 81, 170)
HSLhsl(238, 37%, 49%)
HSVhsv(238, 54%, 67%)
CMYKcmyk(54.1%, 52.4%, 0%, 33.3%)
CIE-LABlab(38.56, 24.65, -48.36)
CIE-LCHlch(38.56, 54.28, 297.01°)
OKLaboklab(48.01% 0.0201 -0.1381)
OKLCHoklch(48.01% 0.14 278.3)
XYZxyz(13.3377, 10.4060, 39.3282)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51AA #AAA74E
analogous
#4E7FAA #4E51AA #794EAA
triadic
#4E51AA #AA4E51 #51AA4E
tetradic
#4E51AA #AA4E7F #AAA74E #4EAA79
square
#4E51AA #AA4E7F #AAA74E #4EAA79
split-complementary
#4E51AA #AA794E #7FAA4E
monochromatic
#282956 #3B3D80 #4E51AA #7578C0 #9FA1D3

Accessibility & contrast

On white

6.82
#4E51AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#4E51AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51AA
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51AA#FFFFFF#000000##FFFFFF
##4E51AA1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225FAD
Deuteranopia (green-blind)
#1457A8
Tritanopia (blue-blind)
#246575
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4e51aa;
/* rgb */ color: rgb(78, 81, 170);
/* oklch */ color: oklch(48.0% 0.140 278.3);
Tailwind
colors: {
  custom: {
    50: '#8781c4',
    500: '#4e51aa',
    950: '#000000',
  },
}
SCSS
$custom: #4e51aa;
$custom-light: #8781c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51aa",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 170
  },
  "hsl": {
    "h": 238.043,
    "s": 37.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.48006,
    "c": 0.13959,
    "h": 278.3
  },
  "luminance": 0.10407
}

Semantic roles & 50–950 ramp

primary
#4E51AA
secondary
#C0BF94
accent
#C95BCD
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #4E51AA

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

Preview Lab → · Contrast checker → · Palette generator →

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