#4E52CD#4E52CD

#4E52CD is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.8% C 0.186 H 276.1°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#4E52CD
RGBrgb(78, 82, 205)
HSLhsl(238, 56%, 55%)
HSVhsv(238, 62%, 80%)
CMYKcmyk(62%, 60%, 0%, 19.6%)
CIE-LABlab(41.31, 35.64, -64.39)
CIE-LCHlch(41.31, 73.60, 298.96°)
OKLaboklab(50.85% 0.0198 -0.1853)
OKLCHoklch(50.85% 0.186 276.1)
XYZxyz(17.1750, 12.0607, 59.1686)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E52CD #CDC94E
analogous
#4E92CD #4E52CD #894ECD
triadic
#4E52CD #CD4E52 #52CD4E
tetradic
#4E52CD #CD4E92 #CDC94E #4ECD89
square
#4E52CD #CD4E92 #CDC94E #4ECD89
split-complementary
#4E52CD #CD894E #92CD4E
monochromatic
#23267D #3135AD #4E52CD #7E81DA #ADAFE8

Accessibility & contrast

On white

6.15
#4E52CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#4E52CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E52CD
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E52CD#FFFFFF#000000##FFFFFF
##4E52CD1.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D1
Deuteranopia (green-blind)
#005CCB
Tritanopia (blue-blind)
#007087
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4e52cd;
/* rgb */ color: rgb(78, 82, 205);
/* oklch */ color: oklch(50.8% 0.186 276.1);
Tailwind
colors: {
  custom: {
    50: '#8c82dd',
    500: '#4e52cd',
    950: '#000000',
  },
}
SCSS
$custom: #4e52cd;
$custom-light: #8c82dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e52cd",
  "rgb": {
    "r": 78,
    "g": 82,
    "b": 205
  },
  "hsl": {
    "h": 238.11,
    "s": 55.947,
    "l": 55.49
  },
  "oklch": {
    "l": 0.50845,
    "c": 0.18634,
    "h": 276.1
  },
  "luminance": 0.12062
}

Semantic roles & 50–950 ramp

primary
#4E52CD
secondary
#D6D4A1
accent
#DB49DF
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4E52CD

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

Preview Lab → · Contrast checker → · Palette generator →

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