#4E52A3#4E52A3

#4E52A3 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.7% C 0.128 H 278.2°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#4E52A3
RGBrgb(78, 82, 163)
HSLhsl(237, 35%, 47%)
HSVhsv(237, 52%, 64%)
CMYKcmyk(52.1%, 49.7%, 0%, 36.1%)
CIE-LABlab(38.37, 21.71, -44.50)
CIE-LCHlch(38.37, 49.51, 296.01°)
OKLaboklab(47.72% 0.0184 -0.1268)
OKLCHoklch(47.72% 0.128 278.2)
XYZxyz(12.7680, 10.2979, 35.9581)
Luminance0.1030 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E52A3 #A39F4E
analogous
#4E7DA3 #4E52A3 #744EA3
triadic
#4E52A3 #A34E52 #52A34E
tetradic
#4E52A3 #A34E7D #A39F4E #4EA374
square
#4E52A3 #A34E7D #A39F4E #4EA374
split-complementary
#4E52A3 #A3744E #7DA34E
monochromatic
#262850 #3A3D7A #4E52A3 #7276BC #9C9ED0

Accessibility & contrast

On white

6.86
#4E52A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#4E52A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E52A3
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E52A3#FFFFFF#000000##FFFFFF
##4E52A31.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5EA6
Deuteranopia (green-blind)
#2357A1
Tritanopia (blue-blind)
#2B6473
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4e52a3;
/* rgb */ color: rgb(78, 82, 163);
/* oklch */ color: oklch(47.7% 0.128 278.2);
Tailwind
colors: {
  custom: {
    50: '#8682bf',
    500: '#4e52a3',
    950: '#000000',
  },
}
SCSS
$custom: #4e52a3;
$custom-light: #8682bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e52a3",
  "rgb": {
    "r": 78,
    "g": 82,
    "b": 163
  },
  "hsl": {
    "h": 237.176,
    "s": 35.27,
    "l": 47.255
  },
  "oklch": {
    "l": 0.47718,
    "c": 0.12809,
    "h": 278.2
  },
  "luminance": 0.10299
}

Semantic roles & 50–950 ramp

primary
#4E52A3
secondary
#BCBA91
accent
#C65CCB
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #4E52A3

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

Preview Lab → · Contrast checker → · Palette generator →

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