#4E51BF#4E51BF

#4E51BF is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.6% C 0.169 H 277.1°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#4E51BF
RGBrgb(78, 81, 191)
HSLhsl(238, 47%, 53%)
HSVhsv(238, 59%, 75%)
CMYKcmyk(59.2%, 57.6%, 0%, 25.1%)
CIE-LABlab(40.02, 31.60, -58.36)
CIE-LCHlch(40.02, 66.37, 298.44°)
OKLaboklab(49.56% 0.0209 -0.1675)
OKLCHoklch(49.56% 0.169 277.1)
XYZxyz(15.4853, 11.2650, 50.6385)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51BF #BFBC4E
analogous
#4E89BF #4E51BF #834EBF
triadic
#4E51BF #BF4E51 #51BF4E
tetradic
#4E51BF #BF4E89 #BFBC4E #4EBF83
square
#4E51BF #BF4E89 #BFBC4E #4EBF83
split-complementary
#4E51BF #BF834E #89BF4E
monochromatic
#27296C #373A99 #4E51BF #7B7DCF #A8A9E0

Accessibility & contrast

On white

6.46
#4E51BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#4E51BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51BF
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51BF#FFFFFF#000000##FFFFFF
##4E51BF1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C3
Deuteranopia (green-blind)
#005ABD
Tritanopia (blue-blind)
#006B80
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4e51bf;
/* rgb */ color: rgb(78, 81, 191);
/* oklch */ color: oklch(49.6% 0.169 277.1);
Tailwind
colors: {
  custom: {
    50: '#8a82d3',
    500: '#4e51bf',
    950: '#000000',
  },
}
SCSS
$custom: #4e51bf;
$custom-light: #8a82d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51bf",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 191
  },
  "hsl": {
    "h": 238.407,
    "s": 46.888,
    "l": 52.745
  },
  "oklch": {
    "l": 0.49562,
    "c": 0.16885,
    "h": 277.1
  },
  "luminance": 0.11266
}

Semantic roles & 50–950 ramp

primary
#4E51BF
secondary
#CDCC9C
accent
#D351D7
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #4E51BF

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

Preview Lab → · Contrast checker → · Palette generator →

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