#4E52AA#4E52AA

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

Color values

HEX#4E52AA
RGBrgb(78, 82, 170)
HSLhsl(237, 37%, 49%)
HSVhsv(237, 54%, 67%)
CMYKcmyk(54.1%, 51.8%, 0%, 33.3%)
CIE-LABlab(38.82, 24.01, -47.94)
CIE-LCHlch(38.82, 53.62, 296.60°)
OKLaboklab(48.2% 0.019 -0.1369)
OKLCHoklch(48.2% 0.138 277.9)
XYZxyz(13.4126, 10.5557, 39.3531)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E52AA #AAA64E
analogous
#4E80AA #4E52AA #784EAA
triadic
#4E52AA #AA4E52 #52AA4E
tetradic
#4E52AA #AA4E80 #AAA64E #4EAA78
square
#4E52AA #AA4E80 #AAA64E #4EAA78
split-complementary
#4E52AA #AA784E #80AA4E
monochromatic
#282A56 #3B3E80 #4E52AA #7579C0 #9FA2D3

Accessibility & contrast

On white

6.75
#4E52AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#4E52AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E52AA
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E52AA#FFFFFF#000000##FFFFFF
##4E52AA1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245FAD
Deuteranopia (green-blind)
#1858A8
Tritanopia (blue-blind)
#246676
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4e52aa;
/* rgb */ color: rgb(78, 82, 170);
/* oklch */ color: oklch(48.2% 0.138 277.9);
Tailwind
colors: {
  custom: {
    50: '#8782c4',
    500: '#4e52aa',
    950: '#000000',
  },
}
SCSS
$custom: #4e52aa;
$custom-light: #8782c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e52aa",
  "rgb": {
    "r": 78,
    "g": 82,
    "b": 170
  },
  "hsl": {
    "h": 237.391,
    "s": 37.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.48201,
    "c": 0.1382,
    "h": 277.9
  },
  "luminance": 0.10557
}

Semantic roles & 50–950 ramp

primary
#4E52AA
secondary
#C0BE94
accent
#C85BCD
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #4E52AA

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

Preview Lab → · Contrast checker → · Palette generator →

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