#4E52D6#4E52D6

#4E52D6 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.6% C 0.198 H 275.6°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#4E52D6
RGBrgb(78, 82, 214)
HSLhsl(238, 62%, 57%)
HSVhsv(238, 64%, 84%)
CMYKcmyk(63.6%, 61.7%, 0%, 16.1%)
CIE-LABlab(42.01, 38.63, -68.43)
CIE-LCHlch(42.01, 78.58, 299.44°)
OKLaboklab(51.58% 0.0195 -0.1971)
OKLCHoklch(51.58% 0.198 275.6)
XYZxyz(18.2928, 12.5078, 65.0555)
Luminance0.1251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E52D6 #D6D24E
analogous
#4E96D6 #4E52D6 #8E4ED6
triadic
#4E52D6 #D64E52 #52D64E
tetradic
#4E52D6 #D64E96 #D6D24E #4ED68E
square
#4E52D6 #D64E96 #D6D24E #4ED68E
split-complementary
#4E52D6 #D68E4E #96D64E
monochromatic
#20238A #2B30BB #4E52D6 #8083E2 #B1B3ED

Accessibility & contrast

On white

6.00
#4E52D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#4E52D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E52D6
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E52D6#FFFFFF#000000##FFFFFF
##4E52D61.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e52d6;
/* rgb */ color: rgb(78, 82, 214);
/* oklch */ color: oklch(51.6% 0.198 275.6);
Tailwind
colors: {
  custom: {
    50: '#8e83e4',
    500: '#4e52d6',
    950: '#000000',
  },
}
SCSS
$custom: #4e52d6;
$custom-light: #8e83e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e52d6",
  "rgb": {
    "r": 78,
    "g": 82,
    "b": 214
  },
  "hsl": {
    "h": 238.235,
    "s": 62.385,
    "l": 57.255
  },
  "oklch": {
    "l": 0.51579,
    "c": 0.1981,
    "h": 275.6
  },
  "luminance": 0.12509
}

Semantic roles & 50–950 ramp

primary
#4E52D6
secondary
#DBDAA4
accent
#E142E5
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4E52D6

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

Preview Lab → · Contrast checker → · Palette generator →

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