#4E52B2#4E52B2

#4E52B2 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.8% C 0.150 H 277.5°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#4E52B2
RGBrgb(78, 82, 178)
HSLhsl(238, 39%, 50%)
HSVhsv(238, 56%, 70%)
CMYKcmyk(56.2%, 53.9%, 0%, 30.2%)
CIE-LABlab(39.36, 26.66, -51.81)
CIE-LCHlch(39.36, 58.27, 297.22°)
OKLaboklab(48.77% 0.0195 -0.1483)
OKLCHoklch(48.77% 0.15 277.5)
XYZxyz(14.1925, 10.8677, 43.4606)
Luminance0.1087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E52B2 #B2AE4E
analogous
#4E84B2 #4E52B2 #7C4EB2
triadic
#4E52B2 #B24E52 #52B24E
tetradic
#4E52B2 #B24E84 #B2AE4E #4EB27C
square
#4E52B2 #B24E84 #B2AE4E #4EB27C
split-complementary
#4E52B2 #B27C4E #84B24E
monochromatic
#292B5D #3B3E88 #4E52B2 #797CC5 #A3A5D7

Accessibility & contrast

On white

6.62
#4E52B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#4E52B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E52B2
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E52B2#FFFFFF#000000##FFFFFF
##4E52B21.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1861B5
Deuteranopia (green-blind)
#0059B0
Tritanopia (blue-blind)
#19687A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4e52b2;
/* rgb */ color: rgb(78, 82, 178);
/* oklch */ color: oklch(48.8% 0.150 277.5);
Tailwind
colors: {
  custom: {
    50: '#8882ca',
    500: '#4e52b2',
    950: '#000000',
  },
}
SCSS
$custom: #4e52b2;
$custom-light: #8882ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4e52b2",
  "rgb": {
    "r": 78,
    "g": 82,
    "b": 178
  },
  "hsl": {
    "h": 237.6,
    "s": 39.37,
    "l": 50.196
  },
  "oklch": {
    "l": 0.48774,
    "c": 0.14956,
    "h": 277.5
  },
  "luminance": 0.10869
}

Semantic roles & 50–950 ramp

primary
#4E52B2
secondary
#C4C298
accent
#CB59CF
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #4E52B2

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

Preview Lab → · Contrast checker → · Palette generator →

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