#4E51BB#4E51BB

#4E51BB is a mid, vivid blue. Relative luminance 0.111; OKLCH L 49.3% C 0.163 H 277.3°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#4E51BB
RGBrgb(78, 81, 187)
HSLhsl(238, 44%, 52%)
HSVhsv(238, 58%, 73%)
CMYKcmyk(58.3%, 56.7%, 0%, 26.7%)
CIE-LABlab(39.73, 30.28, -56.49)
CIE-LCHlch(39.73, 64.09, 298.19°)
OKLaboklab(49.26% 0.0209 -0.1621)
OKLCHoklch(49.26% 0.163 277.3)
XYZxyz(15.0511, 11.0913, 48.3518)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51BB #BBB84E
analogous
#4E87BB #4E51BB #824EBB
triadic
#4E51BB #BB4E51 #51BB4E
tetradic
#4E51BB #BB4E87 #BBB84E #4EBB82
square
#4E51BB #BB4E87 #BBB84E #4EBB82
split-complementary
#4E51BB #BB824E #87BB4E
monochromatic
#282967 #393B93 #4E51BB #7A7CCC #A6A8DD

Accessibility & contrast

On white

6.52
#4E51BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#4E51BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51BB
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51BB#FFFFFF#000000##FFFFFF
##4E51BB1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BF
Deuteranopia (green-blind)
#0059B9
Tritanopia (blue-blind)
#026A7E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4e51bb;
/* rgb */ color: rgb(78, 81, 187);
/* oklch */ color: oklch(49.3% 0.163 277.3);
Tailwind
colors: {
  custom: {
    50: '#8982d0',
    500: '#4e51bb',
    950: '#000000',
  },
}
SCSS
$custom: #4e51bb;
$custom-light: #8982d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51bb",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 187
  },
  "hsl": {
    "h": 238.349,
    "s": 44.49,
    "l": 51.961
  },
  "oklch": {
    "l": 0.49255,
    "c": 0.1634,
    "h": 277.3
  },
  "luminance": 0.11092
}

Semantic roles & 50–950 ramp

primary
#4E51BB
secondary
#CAC99B
accent
#D154D4
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0D0A14
muted
#7D7C82

Preview Lab

Preview with #4E51BB

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

Preview Lab → · Contrast checker → · Palette generator →

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