#4E52AB#4E52AB

#4E52AB is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.3% C 0.140 H 277.9°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#4E52AB
RGBrgb(78, 82, 171)
HSLhsl(237, 37%, 49%)
HSVhsv(237, 54%, 67%)
CMYKcmyk(54.4%, 52%, 0%, 32.9%)
CIE-LABlab(38.89, 24.34, -48.43)
CIE-LCHlch(38.89, 54.20, 296.68°)
OKLaboklab(48.27% 0.0191 -0.1383)
OKLCHoklch(48.27% 0.14 277.9)
XYZxyz(13.5075, 10.5937, 39.8532)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E52AB #ABA74E
analogous
#4E81AB #4E52AB #794EAB
triadic
#4E52AB #AB4E52 #52AB4E
tetradic
#4E52AB #AB4E81 #ABA74E #4EAB79
square
#4E52AB #AB4E81 #ABA74E #4EAB79
split-complementary
#4E52AB #AB794E #81AB4E
monochromatic
#282A57 #3B3E81 #4E52AB #7679C0 #A0A2D4

Accessibility & contrast

On white

6.73
#4E52AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#4E52AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E52AB
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E52AB#FFFFFF#000000##FFFFFF
##4E52AB1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235FAE
Deuteranopia (green-blind)
#1658A9
Tritanopia (blue-blind)
#226676
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4e52ab;
/* rgb */ color: rgb(78, 82, 171);
/* oklch */ color: oklch(48.3% 0.140 277.9);
Tailwind
colors: {
  custom: {
    50: '#8782c5',
    500: '#4e52ab',
    950: '#000000',
  },
}
SCSS
$custom: #4e52ab;
$custom-light: #8782c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e52ab",
  "rgb": {
    "r": 78,
    "g": 82,
    "b": 171
  },
  "hsl": {
    "h": 237.419,
    "s": 37.349,
    "l": 48.824
  },
  "oklch": {
    "l": 0.48272,
    "c": 0.13964,
    "h": 277.9
  },
  "luminance": 0.10595
}

Semantic roles & 50–950 ramp

primary
#4E52AB
secondary
#C1BF94
accent
#C85ACD
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #4E52AB

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

Preview Lab → · Contrast checker → · Palette generator →

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