#4E52D5#4E52D5

#4E52D5 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.5% C 0.197 H 275.7°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#4E52D5
RGBrgb(78, 82, 213)
HSLhsl(238, 62%, 57%)
HSVhsv(238, 63%, 84%)
CMYKcmyk(63.4%, 61.5%, 0%, 16.5%)
CIE-LABlab(41.93, 38.30, -67.98)
CIE-LCHlch(41.93, 78.03, 299.39°)
OKLaboklab(51.5% 0.0195 -0.1958)
OKLCHoklch(51.5% 0.197 275.7)
XYZxyz(18.1655, 12.4569, 64.3850)
Luminance0.1246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E52D5 #D5D14E
analogous
#4E96D5 #4E52D5 #8D4ED5
triadic
#4E52D5 #D54E52 #52D54E
tetradic
#4E52D5 #D54E96 #D5D14E #4ED58D
square
#4E52D5 #D54E96 #D5D14E #4ED58D
split-complementary
#4E52D5 #D58D4E #96D54E
monochromatic
#202388 #2C30BA #4E52D5 #7F82E1 #B1B3EC

Accessibility & contrast

On white

6.01
#4E52D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#4E52D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E52D5
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E52D5#FFFFFF#000000##FFFFFF
##4E52D51.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D9
Deuteranopia (green-blind)
#005DD2
Tritanopia (blue-blind)
#00738C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4e52d5;
/* rgb */ color: rgb(78, 82, 213);
/* oklch */ color: oklch(51.5% 0.197 275.7);
Tailwind
colors: {
  custom: {
    50: '#8e83e3',
    500: '#4e52d5',
    950: '#000000',
  },
}
SCSS
$custom: #4e52d5;
$custom-light: #8e83e3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e52d5",
  "rgb": {
    "r": 78,
    "g": 82,
    "b": 213
  },
  "hsl": {
    "h": 238.222,
    "s": 61.644,
    "l": 57.059
  },
  "oklch": {
    "l": 0.51496,
    "c": 0.1968,
    "h": 275.7
  },
  "luminance": 0.12458
}

Semantic roles & 50–950 ramp

primary
#4E52D5
secondary
#DBD9A4
accent
#E043E5
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4E52D5

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

Preview Lab → · Contrast checker → · Palette generator →

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