#4E52BC#4E52BC

#4E52BC is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.5% C 0.163 H 277.0°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#4E52BC
RGBrgb(78, 82, 188)
HSLhsl(238, 45%, 52%)
HSVhsv(238, 59%, 74%)
CMYKcmyk(58.5%, 56.4%, 0%, 26.3%)
CIE-LABlab(40.05, 29.98, -56.56)
CIE-LCHlch(40.05, 64.01, 297.93°)
OKLaboklab(49.52% 0.0199 -0.1622)
OKLCHoklch(49.52% 0.163 277)
XYZxyz(15.2334, 11.2840, 48.9425)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E52BC #BCB84E
analogous
#4E89BC #4E52BC #814EBC
triadic
#4E52BC #BC4E52 #52BC4E
tetradic
#4E52BC #BC4E89 #BCB84E #4EBC81
square
#4E52BC #BC4E89 #BCB84E #4EBC81
split-complementary
#4E52BC #BC814E #89BC4E
monochromatic
#272A68 #383C95 #4E52BC #7A7DCD #A7A9DE

Accessibility & contrast

On white

6.45
#4E52BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#4E52BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E52BC
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E52BC#FFFFFF#000000##FFFFFF
##4E52BC1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C0
Deuteranopia (green-blind)
#005ABA
Tritanopia (blue-blind)
#006B7F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4e52bc;
/* rgb */ color: rgb(78, 82, 188);
/* oklch */ color: oklch(49.5% 0.163 277.0);
Tailwind
colors: {
  custom: {
    50: '#8a82d1',
    500: '#4e52bc',
    950: '#000000',
  },
}
SCSS
$custom: #4e52bc;
$custom-light: #8a82d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e52bc",
  "rgb": {
    "r": 78,
    "g": 82,
    "b": 188
  },
  "hsl": {
    "h": 237.818,
    "s": 45.082,
    "l": 52.157
  },
  "oklch": {
    "l": 0.49517,
    "c": 0.16346,
    "h": 277
  },
  "luminance": 0.11285
}

Semantic roles & 50–950 ramp

primary
#4E52BC
secondary
#CBC99B
accent
#D053D5
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0D0A14
muted
#7D7C82

Preview Lab

Preview with #4E52BC

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

Preview Lab → · Contrast checker → · Palette generator →

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