#4E52A0#4E52A0

#4E52A0 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.5% C 0.124 H 278.4°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#4E52A0
RGBrgb(78, 82, 160)
HSLhsl(237, 34%, 47%)
HSVhsv(237, 51%, 63%)
CMYKcmyk(51.2%, 48.8%, 0%, 37.3%)
CIE-LABlab(38.18, 20.73, -43.01)
CIE-LCHlch(38.18, 47.74, 295.74°)
OKLaboklab(47.52% 0.018 -0.1224)
OKLCHoklch(47.52% 0.124 278.4)
XYZxyz(12.5024, 10.1916, 34.5593)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E52A0 #A09C4E
analogous
#4E7BA0 #4E52A0 #734EA0
triadic
#4E52A0 #A04E52 #52A04E
tetradic
#4E52A0 #A04E7B #A09C4E #4EA073
square
#4E52A0 #A04E7B #A09C4E #4EA073
split-complementary
#4E52A0 #A0734E #7BA04E
monochromatic
#26284E #3A3D77 #4E52A0 #7175BA #9A9DCE

Accessibility & contrast

On white

6.91
#4E52A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#4E52A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E52A0
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E52A0#FFFFFF#000000##FFFFFF
##4E52A01.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5DA3
Deuteranopia (green-blind)
#27579E
Tritanopia (blue-blind)
#2D6371
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4e52a0;
/* rgb */ color: rgb(78, 82, 160);
/* oklch */ color: oklch(47.5% 0.124 278.4);
Tailwind
colors: {
  custom: {
    50: '#8582bc',
    500: '#4e52a0',
    950: '#000000',
  },
}
SCSS
$custom: #4e52a0;
$custom-light: #8582bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e52a0",
  "rgb": {
    "r": 78,
    "g": 82,
    "b": 160
  },
  "hsl": {
    "h": 237.073,
    "s": 34.454,
    "l": 46.667
  },
  "oklch": {
    "l": 0.47515,
    "c": 0.1237,
    "h": 278.4
  },
  "luminance": 0.10192
}

Semantic roles & 50–950 ramp

primary
#4E52A0
secondary
#BBB98F
accent
#C55DCB
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0B0A12
muted
#7C7C81

Preview Lab

Preview with #4E52A0

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

Preview Lab → · Contrast checker → · Palette generator →

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