#4E51BE#4E51BE

#4E51BE is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.5% C 0.167 H 277.2°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#4E51BE
RGBrgb(78, 81, 190)
HSLhsl(238, 46%, 53%)
HSVhsv(238, 59%, 75%)
CMYKcmyk(58.9%, 57.4%, 0%, 25.5%)
CIE-LABlab(39.95, 31.27, -57.90)
CIE-LCHlch(39.95, 65.80, 298.38°)
OKLaboklab(49.49% 0.0209 -0.1662)
OKLCHoklch(49.49% 0.167 277.2)
XYZxyz(15.3756, 11.2211, 50.0609)
Luminance0.1122 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51BE #BEBB4E
analogous
#4E89BE #4E51BE #834EBE
triadic
#4E51BE #BE4E51 #51BE4E
tetradic
#4E51BE #BE4E89 #BEBB4E #4EBE83
square
#4E51BE #BE4E89 #BEBB4E #4EBE83
split-complementary
#4E51BE #BE834E #89BE4E
monochromatic
#27296A #383A97 #4E51BE #7B7DCE #A8A9DF

Accessibility & contrast

On white

6.47
#4E51BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#4E51BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51BE
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51BE#FFFFFF#000000##FFFFFF
##4E51BE1.006.473.246.47
#FFFFFF6.471.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C2
Deuteranopia (green-blind)
#005ABC
Tritanopia (blue-blind)
#006B7F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4e51be;
/* rgb */ color: rgb(78, 81, 190);
/* oklch */ color: oklch(49.5% 0.167 277.2);
Tailwind
colors: {
  custom: {
    50: '#8a82d2',
    500: '#4e51be',
    950: '#000000',
  },
}
SCSS
$custom: #4e51be;
$custom-light: #8a82d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51be",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 190
  },
  "hsl": {
    "h": 238.393,
    "s": 46.281,
    "l": 52.549
  },
  "oklch": {
    "l": 0.49485,
    "c": 0.16749,
    "h": 277.2
  },
  "luminance": 0.11222
}

Semantic roles & 50–950 ramp

primary
#4E51BE
secondary
#CCCB9C
accent
#D252D6
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #4E51BE

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

Preview Lab → · Contrast checker → · Palette generator →

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