#4E51A4#4E51A4

#4E51A4 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.6% C 0.131 H 278.6°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#4E51A4
RGBrgb(78, 81, 164)
HSLhsl(238, 36%, 47%)
HSVhsv(238, 52%, 64%)
CMYKcmyk(52.4%, 50.6%, 0%, 35.7%)
CIE-LABlab(38.17, 22.68, -45.42)
CIE-LCHlch(38.17, 50.77, 296.54°)
OKLaboklab(47.59% 0.0196 -0.1295)
OKLCHoklch(47.59% 0.131 278.6)
XYZxyz(12.7831, 10.1841, 36.4069)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51A4 #A4A14E
analogous
#4E7CA4 #4E51A4 #764EA4
triadic
#4E51A4 #A44E51 #51A44E
tetradic
#4E51A4 #A44E7C #A4A14E #4EA476
square
#4E51A4 #A44E7C #A4A14E #4EA476
split-complementary
#4E51A4 #A4764E #7CA44E
monochromatic
#272851 #3A3D7B #4E51A4 #7375BC #9C9ED0

Accessibility & contrast

On white

6.91
#4E51A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#4E51A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51A4
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51A4#FFFFFF#000000##FFFFFF
##4E51A41.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295DA7
Deuteranopia (green-blind)
#2057A2
Tritanopia (blue-blind)
#2A6373
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4e51a4;
/* rgb */ color: rgb(78, 81, 164);
/* oklch */ color: oklch(47.6% 0.131 278.6);
Tailwind
colors: {
  custom: {
    50: '#8681bf',
    500: '#4e51a4',
    950: '#000000',
  },
}
SCSS
$custom: #4e51a4;
$custom-light: #8681bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51a4",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 164
  },
  "hsl": {
    "h": 237.907,
    "s": 35.537,
    "l": 47.451
  },
  "oklch": {
    "l": 0.47587,
    "c": 0.13096,
    "h": 278.6
  },
  "luminance": 0.10185
}

Semantic roles & 50–950 ramp

primary
#4E51A4
secondary
#BDBB91
accent
#C85CCC
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #4E51A4

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

Preview Lab → · Contrast checker → · Palette generator →

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