#4E52A5#4E52A5

#4E52A5 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.9% C 0.131 H 278.1°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#4E52A5
RGBrgb(78, 82, 165)
HSLhsl(237, 36%, 48%)
HSVhsv(237, 53%, 65%)
CMYKcmyk(52.7%, 50.3%, 0%, 35.3%)
CIE-LABlab(38.50, 22.37, -45.49)
CIE-LCHlch(38.50, 50.69, 296.18°)
OKLaboklab(47.85% 0.0186 -0.1297)
OKLCHoklch(47.85% 0.131 278.1)
XYZxyz(12.9486, 10.3701, 36.9093)
Luminance0.1037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E52A5 #A5A14E
analogous
#4E7EA5 #4E52A5 #754EA5
triadic
#4E52A5 #A54E52 #52A54E
tetradic
#4E52A5 #A54E7E #A5A14E #4EA575
square
#4E52A5 #A54E7E #A5A14E #4EA575
split-complementary
#4E52A5 #A5754E #7EA54E
monochromatic
#272952 #3A3D7B #4E52A5 #7377BD #9D9FD1

Accessibility & contrast

On white

6.83
#4E52A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#4E52A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E52A5
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E52A5#FFFFFF#000000##FFFFFF
##4E52A51.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5EA8
Deuteranopia (green-blind)
#2157A3
Tritanopia (blue-blind)
#296474
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4e52a5;
/* rgb */ color: rgb(78, 82, 165);
/* oklch */ color: oklch(47.9% 0.131 278.1);
Tailwind
colors: {
  custom: {
    50: '#8682c0',
    500: '#4e52a5',
    950: '#000000',
  },
}
SCSS
$custom: #4e52a5;
$custom-light: #8682c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e52a5",
  "rgb": {
    "r": 78,
    "g": 82,
    "b": 165
  },
  "hsl": {
    "h": 237.241,
    "s": 35.802,
    "l": 47.647
  },
  "oklch": {
    "l": 0.47854,
    "c": 0.131,
    "h": 278.1
  },
  "luminance": 0.10371
}

Semantic roles & 50–950 ramp

primary
#4E52A5
secondary
#BDBB91
accent
#C75CCC
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #4E52A5

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

Preview Lab → · Contrast checker → · Palette generator →

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