#4E52D7#4E52D7

#4E52D7 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.7% C 0.199 H 275.6°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#4E52D7
RGBrgb(78, 82, 215)
HSLhsl(238, 63%, 57%)
HSVhsv(238, 64%, 84%)
CMYKcmyk(63.7%, 61.9%, 0%, 15.7%)
CIE-LABlab(42.09, 38.96, -68.87)
CIE-LCHlch(42.09, 79.13, 299.50°)
OKLaboklab(51.66% 0.0194 -0.1984)
OKLCHoklch(51.66% 0.199 275.6)
XYZxyz(18.4209, 12.5590, 65.7302)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E52D7 #D7D34E
analogous
#4E97D7 #4E52D7 #8E4ED7
triadic
#4E52D7 #D74E52 #52D74E
tetradic
#4E52D7 #D74E97 #D7D34E #4ED78E
square
#4E52D7 #D74E97 #D7D34E #4ED78E
split-complementary
#4E52D7 #D78E4E #97D74E
monochromatic
#1F238B #2B2FBD #4E52D7 #8083E2 #B2B4EE

Accessibility & contrast

On white

5.98
#4E52D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#4E52D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E52D7
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E52D7#FFFFFF#000000##FFFFFF
##4E52D71.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DB
Deuteranopia (green-blind)
#005DD4
Tritanopia (blue-blind)
#00738D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4e52d7;
/* rgb */ color: rgb(78, 82, 215);
/* oklch */ color: oklch(51.7% 0.199 275.6);
Tailwind
colors: {
  custom: {
    50: '#8e83e4',
    500: '#4e52d7',
    950: '#000000',
  },
}
SCSS
$custom: #4e52d7;
$custom-light: #8e83e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e52d7",
  "rgb": {
    "r": 78,
    "g": 82,
    "b": 215
  },
  "hsl": {
    "h": 238.248,
    "s": 63.134,
    "l": 57.451
  },
  "oklch": {
    "l": 0.51661,
    "c": 0.19939,
    "h": 275.6
  },
  "luminance": 0.12561
}

Semantic roles & 50–950 ramp

primary
#4E52D7
secondary
#DCDAA5
accent
#E142E6
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4E52D7

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

Preview Lab → · Contrast checker → · Palette generator →

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