#4E52D4#4E52D4

#4E52D4 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.4% C 0.196 H 275.7°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#4E52D4
RGBrgb(78, 82, 212)
HSLhsl(238, 61%, 57%)
HSVhsv(238, 63%, 83%)
CMYKcmyk(63.2%, 61.3%, 0%, 16.9%)
CIE-LABlab(41.85, 37.97, -67.54)
CIE-LCHlch(41.85, 77.48, 299.34°)
OKLaboklab(51.41% 0.0196 -0.1945)
OKLCHoklch(51.41% 0.196 275.7)
XYZxyz(18.0390, 12.4063, 63.7186)
Luminance0.1241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E52D4 #D4D04E
analogous
#4E95D4 #4E52D4 #8D4ED4
triadic
#4E52D4 #D44E52 #52D44E
tetradic
#4E52D4 #D44E95 #D4D04E #4ED48D
square
#4E52D4 #D44E95 #D4D04E #4ED48D
split-complementary
#4E52D4 #D48D4E #95D44E
monochromatic
#212487 #2D31B8 #4E52D4 #7F82E0 #B0B2EC

Accessibility & contrast

On white

6.03
#4E52D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#4E52D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E52D4
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E52D4#FFFFFF#000000##FFFFFF
##4E52D41.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D8
Deuteranopia (green-blind)
#005DD1
Tritanopia (blue-blind)
#00728B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4e52d4;
/* rgb */ color: rgb(78, 82, 212);
/* oklch */ color: oklch(51.4% 0.196 275.7);
Tailwind
colors: {
  custom: {
    50: '#8e83e2',
    500: '#4e52d4',
    950: '#000000',
  },
}
SCSS
$custom: #4e52d4;
$custom-light: #8e83e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e52d4",
  "rgb": {
    "r": 78,
    "g": 82,
    "b": 212
  },
  "hsl": {
    "h": 238.209,
    "s": 60.909,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51414,
    "c": 0.1955,
    "h": 275.7
  },
  "luminance": 0.12408
}

Semantic roles & 50–950 ramp

primary
#4E52D4
secondary
#DAD9A4
accent
#DF44E4
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A15
muted
#7E7C84

Preview Lab

Preview with #4E52D4

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

Preview Lab → · Contrast checker → · Palette generator →

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