#4E52D9#4E52D9

#4E52D9 is a mid, highly saturated blue. Relative luminance 0.127; OKLCH L 51.8% C 0.202 H 275.5°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#4E52D9
RGBrgb(78, 82, 217)
HSLhsl(238, 65%, 58%)
HSVhsv(238, 64%, 85%)
CMYKcmyk(64.1%, 62.2%, 0%, 14.9%)
CIE-LABlab(42.25, 39.62, -69.76)
CIE-LCHlch(42.25, 80.23, 299.60°)
OKLaboklab(51.83% 0.0193 -0.201)
OKLCHoklch(51.83% 0.202 275.5)
XYZxyz(18.6795, 12.6625, 67.0919)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E52D9 #D9D54E
analogous
#4E98D9 #4E52D9 #8F4ED9
triadic
#4E52D9 #D94E52 #52D94E
tetradic
#4E52D9 #D94E98 #D9D54E #4ED98F
square
#4E52D9 #D94E98 #D9D54E #4ED98F
split-complementary
#4E52D9 #D98F4E #98D94E
monochromatic
#1F228E #292EC0 #4E52D9 #8083E4 #B3B4EF

Accessibility & contrast

On white

5.94
#4E52D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#4E52D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E52D9
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E52D9#FFFFFF#000000##FFFFFF
##4E52D91.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADD
Deuteranopia (green-blind)
#005ED6
Tritanopia (blue-blind)
#00748E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4e52d9;
/* rgb */ color: rgb(78, 82, 217);
/* oklch */ color: oklch(51.8% 0.202 275.5);
Tailwind
colors: {
  custom: {
    50: '#8f83e6',
    500: '#4e52d9',
    950: '#000000',
  },
}
SCSS
$custom: #4e52d9;
$custom-light: #8f83e6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e52d9",
  "rgb": {
    "r": 78,
    "g": 82,
    "b": 217
  },
  "hsl": {
    "h": 238.273,
    "s": 64.651,
    "l": 57.843
  },
  "oklch": {
    "l": 0.51827,
    "c": 0.20196,
    "h": 275.5
  },
  "luminance": 0.12664
}

Semantic roles & 50–950 ramp

primary
#4E52D9
secondary
#DDDCA6
accent
#E340E8
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4E52D9

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

Preview Lab → · Contrast checker → · Palette generator →

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