#4E51BA#4E51BA

#4E51BA is a mid, vivid blue. Relative luminance 0.111; OKLCH L 49.2% C 0.162 H 277.4°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#4E51BA
RGBrgb(78, 81, 186)
HSLhsl(238, 44%, 52%)
HSVhsv(238, 58%, 73%)
CMYKcmyk(58.1%, 56.5%, 0%, 27.1%)
CIE-LABlab(39.66, 29.94, -56.02)
CIE-LCHlch(39.66, 63.52, 298.12°)
OKLaboklab(49.18% 0.0209 -0.1607)
OKLCHoklch(49.18% 0.162 277.4)
XYZxyz(14.9444, 11.0487, 47.7900)
Luminance0.1105 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51BA #BAB74E
analogous
#4E87BA #4E51BA #814EBA
triadic
#4E51BA #BA4E51 #51BA4E
tetradic
#4E51BA #BA4E87 #BAB74E #4EBA81
square
#4E51BA #BA4E87 #BAB74E #4EBA81
split-complementary
#4E51BA #BA814E #87BA4E
monochromatic
#282966 #393B92 #4E51BA #7A7CCB #A6A8DC

Accessibility & contrast

On white

6.54
#4E51BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#4E51BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51BA
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51BA#FFFFFF#000000##FFFFFF
##4E51BA1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BE
Deuteranopia (green-blind)
#0059B8
Tritanopia (blue-blind)
#056A7D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4e51ba;
/* rgb */ color: rgb(78, 81, 186);
/* oklch */ color: oklch(49.2% 0.162 277.4);
Tailwind
colors: {
  custom: {
    50: '#8982cf',
    500: '#4e51ba',
    950: '#000000',
  },
}
SCSS
$custom: #4e51ba;
$custom-light: #8982cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51ba",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 186
  },
  "hsl": {
    "h": 238.333,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.49179,
    "c": 0.16202,
    "h": 277.4
  },
  "luminance": 0.1105
}

Semantic roles & 50–950 ramp

primary
#4E51BA
secondary
#CAC89A
accent
#D054D4
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A14
muted
#7D7C82

Preview Lab

Preview with #4E51BA

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

Preview Lab → · Contrast checker → · Palette generator →

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