#4E52B5#4E52B5

#4E52B5 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.0% C 0.154 H 277.4°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#4E52B5
RGBrgb(78, 82, 181)
HSLhsl(238, 41%, 51%)
HSVhsv(238, 57%, 71%)
CMYKcmyk(56.9%, 54.7%, 0%, 29%)
CIE-LABlab(39.56, 27.65, -53.25)
CIE-LCHlch(39.56, 60.00, 297.44°)
OKLaboklab(48.99% 0.0197 -0.1525)
OKLCHoklch(48.99% 0.154 277.4)
XYZxyz(14.4970, 10.9895, 45.0644)
Luminance0.1099 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E52B5 #B5B14E
analogous
#4E85B5 #4E52B5 #7D4EB5
triadic
#4E52B5 #B54E52 #52B54E
tetradic
#4E52B5 #B54E85 #B5B14E #4EB57D
square
#4E52B5 #B54E85 #B5B14E #4EB57D
split-complementary
#4E52B5 #B57D4E #85B54E
monochromatic
#282A60 #3A3D8B #4E52B5 #797CC7 #A4A6D9

Accessibility & contrast

On white

6.57
#4E52B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#4E52B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E52B5
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E52B5#FFFFFF#000000##FFFFFF
##4E52B51.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1162B8
Deuteranopia (green-blind)
#0059B3
Tritanopia (blue-blind)
#13697B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4e52b5;
/* rgb */ color: rgb(78, 82, 181);
/* oklch */ color: oklch(49.0% 0.154 277.4);
Tailwind
colors: {
  custom: {
    50: '#8882cc',
    500: '#4e52b5',
    950: '#000000',
  },
}
SCSS
$custom: #4e52b5;
$custom-light: #8882cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e52b5",
  "rgb": {
    "r": 78,
    "g": 82,
    "b": 181
  },
  "hsl": {
    "h": 237.67,
    "s": 41.036,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48993,
    "c": 0.15376,
    "h": 277.4
  },
  "luminance": 0.1099
}

Semantic roles & 50–950 ramp

primary
#4E52B5
secondary
#C6C499
accent
#CC57D1
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #4E52B5

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

Preview Lab → · Contrast checker → · Palette generator →

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