#4E52CA#4E52CA

#4E52CA is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.6% C 0.182 H 276.3°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#4E52CA
RGBrgb(78, 82, 202)
HSLhsl(238, 54%, 55%)
HSVhsv(238, 61%, 79%)
CMYKcmyk(61.4%, 59.4%, 0%, 20.8%)
CIE-LABlab(41.08, 34.64, -63.03)
CIE-LCHlch(41.08, 71.92, 298.79°)
OKLaboklab(50.61% 0.0199 -0.1813)
OKLCHoklch(50.61% 0.182 276.3)
XYZxyz(16.8164, 11.9172, 57.2797)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E52CA #CAC64E
analogous
#4E90CA #4E52CA #884ECA
triadic
#4E52CA #CA4E52 #52CA4E
tetradic
#4E52CA #CA4E90 #CAC64E #4ECA88
square
#4E52CA #CA4E90 #CAC64E #4ECA88
split-complementary
#4E52CA #CA884E #90CA4E
monochromatic
#242779 #3236A8 #4E52CA #7D80D8 #ACAEE6

Accessibility & contrast

On white

6.21
#4E52CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#4E52CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E52CA
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E52CA#FFFFFF#000000##FFFFFF
##4E52CA1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CE
Deuteranopia (green-blind)
#005CC8
Tritanopia (blue-blind)
#006F86
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4e52ca;
/* rgb */ color: rgb(78, 82, 202);
/* oklch */ color: oklch(50.6% 0.182 276.3);
Tailwind
colors: {
  custom: {
    50: '#8c82db',
    500: '#4e52ca',
    950: '#000000',
  },
}
SCSS
$custom: #4e52ca;
$custom-light: #8c82db;
$custom-dark: #000000;
JSON
{
  "hex": "#4e52ca",
  "rgb": {
    "r": 78,
    "g": 82,
    "b": 202
  },
  "hsl": {
    "h": 238.065,
    "s": 53.913,
    "l": 54.902
  },
  "oklch": {
    "l": 0.50605,
    "c": 0.18236,
    "h": 276.3
  },
  "luminance": 0.11919
}

Semantic roles & 50–950 ramp

primary
#4E52CA
secondary
#D4D2A0
accent
#D94BDD
background
#F9F8FD
surface
#F1EFFB
border
#CBCAD4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4E52CA

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

Preview Lab → · Contrast checker → · Palette generator →

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