#4E51BC#4E51BC

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

Color values

HEX#4E51BC
RGBrgb(78, 81, 188)
HSLhsl(238, 45%, 52%)
HSVhsv(238, 59%, 74%)
CMYKcmyk(58.5%, 56.9%, 0%, 26.3%)
CIE-LABlab(39.81, 30.61, -56.96)
CIE-LCHlch(39.81, 64.66, 298.25°)
OKLaboklab(49.33% 0.0209 -0.1634)
OKLCHoklch(49.33% 0.165 277.3)
XYZxyz(15.1585, 11.1343, 48.9175)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51BC #BCB94E
analogous
#4E88BC #4E51BC #824EBC
triadic
#4E51BC #BC4E51 #51BC4E
tetradic
#4E51BC #BC4E88 #BCB94E #4EBC82
square
#4E51BC #BC4E88 #BCB94E #4EBC82
split-complementary
#4E51BC #BC824E #88BC4E
monochromatic
#272968 #383B95 #4E51BC #7A7DCD #A7A8DE

Accessibility & contrast

On white

6.51
#4E51BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#4E51BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51BC
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51BC#FFFFFF#000000##FFFFFF
##4E51BC1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C0
Deuteranopia (green-blind)
#0059BA
Tritanopia (blue-blind)
#006A7E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4e51bc;
/* rgb */ color: rgb(78, 81, 188);
/* oklch */ color: oklch(49.3% 0.165 277.3);
Tailwind
colors: {
  custom: {
    50: '#8a82d1',
    500: '#4e51bc',
    950: '#000000',
  },
}
SCSS
$custom: #4e51bc;
$custom-light: #8a82d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51bc",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 188
  },
  "hsl": {
    "h": 238.364,
    "s": 45.082,
    "l": 52.157
  },
  "oklch": {
    "l": 0.49331,
    "c": 0.16476,
    "h": 277.3
  },
  "luminance": 0.11135
}

Semantic roles & 50–950 ramp

primary
#4E51BC
secondary
#CBCA9B
accent
#D153D5
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0D0A14
muted
#7D7C82

Preview Lab

Preview with #4E51BC

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

Preview Lab → · Contrast checker → · Palette generator →

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