#4E51A2#4E51A2

#4E51A2 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.4% C 0.128 H 278.7°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#4E51A2
RGBrgb(78, 81, 162)
HSLhsl(238, 35%, 47%)
HSVhsv(238, 52%, 64%)
CMYKcmyk(51.9%, 50%, 0%, 36.5%)
CIE-LABlab(38.04, 22.03, -44.43)
CIE-LCHlch(38.04, 49.59, 296.37°)
OKLaboklab(47.45% 0.0194 -0.1266)
OKLCHoklch(47.45% 0.128 278.7)
XYZxyz(12.6039, 10.1125, 35.4632)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E51A2 #A29F4E
analogous
#4E7BA2 #4E51A2 #754EA2
triadic
#4E51A2 #A24E51 #51A24E
tetradic
#4E51A2 #A24E7B #A29F4E #4EA275
square
#4E51A2 #A24E7B #A29F4E #4EA275
split-complementary
#4E51A2 #A2754E #7BA24E
monochromatic
#26284F #3A3C79 #4E51A2 #7275BB #9B9DCF

Accessibility & contrast

On white

6.95
#4E51A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#4E51A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E51A2
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E51A2#FFFFFF#000000##FFFFFF
##4E51A21.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5DA5
Deuteranopia (green-blind)
#2356A0
Tritanopia (blue-blind)
#2C6372
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4e51a2;
/* rgb */ color: rgb(78, 81, 162);
/* oklch */ color: oklch(47.4% 0.128 278.7);
Tailwind
colors: {
  custom: {
    50: '#8681be',
    500: '#4e51a2',
    950: '#000000',
  },
}
SCSS
$custom: #4e51a2;
$custom-light: #8681be;
$custom-dark: #000000;
JSON
{
  "hex": "#4e51a2",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 162
  },
  "hsl": {
    "h": 237.857,
    "s": 35,
    "l": 47.059
  },
  "oklch": {
    "l": 0.4745,
    "c": 0.12805,
    "h": 278.7
  },
  "luminance": 0.10113
}

Semantic roles & 50–950 ramp

primary
#4E51A2
secondary
#BCBA90
accent
#C75DCB
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #4E51A2

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

Preview Lab → · Contrast checker → · Palette generator →

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