#4E52BF#4E52BF

#4E52BF is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.7% C 0.168 H 276.8°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#4E52BF
RGBrgb(78, 82, 191)
HSLhsl(238, 47%, 53%)
HSVhsv(238, 59%, 75%)
CMYKcmyk(59.2%, 57.1%, 0%, 25.1%)
CIE-LABlab(40.27, 30.98, -57.96)
CIE-LCHlch(40.27, 65.72, 298.12°)
OKLaboklab(49.75% 0.0199 -0.1664)
OKLCHoklch(49.75% 0.168 276.8)
XYZxyz(15.5601, 11.4147, 50.6634)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E52BF #BFBB4E
analogous
#4E8ABF #4E52BF #824EBF
triadic
#4E52BF #BF4E52 #52BF4E
tetradic
#4E52BF #BF4E8A #BFBB4E #4EBF82
square
#4E52BF #BF4E8A #BFBB4E #4EBF82
split-complementary
#4E52BF #BF824E #8ABF4E
monochromatic
#27296C #373B99 #4E52BF #7B7ECF #A8AAE0

Accessibility & contrast

On white

6.40
#4E52BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#4E52BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E52BF
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E52BF#FFFFFF#000000##FFFFFF
##4E52BF1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C3
Deuteranopia (green-blind)
#005ABD
Tritanopia (blue-blind)
#006C80
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4e52bf;
/* rgb */ color: rgb(78, 82, 191);
/* oklch */ color: oklch(49.7% 0.168 276.8);
Tailwind
colors: {
  custom: {
    50: '#8a82d3',
    500: '#4e52bf',
    950: '#000000',
  },
}
SCSS
$custom: #4e52bf;
$custom-light: #8a82d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e52bf",
  "rgb": {
    "r": 78,
    "g": 82,
    "b": 191
  },
  "hsl": {
    "h": 237.876,
    "s": 46.888,
    "l": 52.745
  },
  "oklch": {
    "l": 0.49745,
    "c": 0.16756,
    "h": 276.8
  },
  "luminance": 0.11416
}

Semantic roles & 50–950 ramp

primary
#4E52BF
secondary
#CDCB9C
accent
#D251D7
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #4E52BF

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

Preview Lab → · Contrast checker → · Palette generator →

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