#4E52BA#4E52BA

#4E52BA is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.4% C 0.161 H 277.1°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#4E52BA
RGBrgb(78, 82, 186)
HSLhsl(238, 44%, 52%)
HSVhsv(238, 58%, 73%)
CMYKcmyk(58.1%, 55.9%, 0%, 27.1%)
CIE-LABlab(39.91, 29.31, -55.62)
CIE-LCHlch(39.91, 62.87, 297.79°)
OKLaboklab(49.37% 0.0199 -0.1595)
OKLCHoklch(49.37% 0.161 277.1)
XYZxyz(15.0193, 11.1984, 47.8149)
Luminance0.1120 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E52BA #BAB64E
analogous
#4E88BA #4E52BA #804EBA
triadic
#4E52BA #BA4E52 #52BA4E
tetradic
#4E52BA #BA4E88 #BAB64E #4EBA80
square
#4E52BA #BA4E88 #BAB64E #4EBA80
split-complementary
#4E52BA #BA804E #88BA4E
monochromatic
#282A66 #393C92 #4E52BA #7A7DCB #A6A8DC

Accessibility & contrast

On white

6.48
#4E52BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#4E52BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E52BA
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E52BA#FFFFFF#000000##FFFFFF
##4E52BA1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063BE
Deuteranopia (green-blind)
#005AB8
Tritanopia (blue-blind)
#056A7E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4e52ba;
/* rgb */ color: rgb(78, 82, 186);
/* oklch */ color: oklch(49.4% 0.161 277.1);
Tailwind
colors: {
  custom: {
    50: '#8982cf',
    500: '#4e52ba',
    950: '#000000',
  },
}
SCSS
$custom: #4e52ba;
$custom-light: #8982cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e52ba",
  "rgb": {
    "r": 78,
    "g": 82,
    "b": 186
  },
  "hsl": {
    "h": 237.778,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.49366,
    "c": 0.1607,
    "h": 277.1
  },
  "luminance": 0.11199
}

Semantic roles & 50–950 ramp

primary
#4E52BA
secondary
#CAC89A
accent
#CF54D4
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A14
muted
#7D7C82

Preview Lab

Preview with #4E52BA

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

Preview Lab → · Contrast checker → · Palette generator →

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