#4E51C2#4E51C2

#4E51C2 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.8% C 0.173 H 276.9°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#4E51C2
RGBrgb(78, 81, 194)
HSLhsl(238, 49%, 53%)
HSVhsv(238, 60%, 76%)
CMYKcmyk(59.8%, 58.2%, 0%, 23.9%)
CIE-LABlab(40.24, 32.60, -59.75)
CIE-LCHlch(40.24, 68.07, 298.62°)
OKLaboklab(49.8% 0.0209 -0.1716)
OKLCHoklch(49.8% 0.173 276.9)
XYZxyz(15.8188, 11.3984, 52.3950)
Luminance0.1140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51C2 #C2BF4E
analogous
#4E8BC2 #4E51C2 #854EC2
triadic
#4E51C2 #C24E51 #51C24E
tetradic
#4E51C2 #C24E8B #C2BF4E #4EC285
square
#4E51C2 #C24E8B #C2BF4E #4EC285
split-complementary
#4E51C2 #C2854E #8BC24E
monochromatic
#26286F #36399D #4E51C2 #7C7ED2 #A9AAE1

Accessibility & contrast

On white

6.40
#4E51C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#4E51C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51C2
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51C2#FFFFFF#000000##FFFFFF
##4E51C21.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C6
Deuteranopia (green-blind)
#005AC0
Tritanopia (blue-blind)
#006C81
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4e51c2;
/* rgb */ color: rgb(78, 81, 194);
/* oklch */ color: oklch(49.8% 0.173 276.9);
Tailwind
colors: {
  custom: {
    50: '#8b82d5',
    500: '#4e51c2',
    950: '#000000',
  },
}
SCSS
$custom: #4e51c2;
$custom-light: #8b82d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51c2",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 194
  },
  "hsl": {
    "h": 238.448,
    "s": 48.739,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49795,
    "c": 0.17292,
    "h": 276.9
  },
  "luminance": 0.114
}

Semantic roles & 50–950 ramp

primary
#4E51C2
secondary
#CFCE9D
accent
#D550D8
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #4E51C2

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

Preview Lab → · Contrast checker → · Palette generator →

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