#4E52B1#4E52B1

#4E52B1 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.7% C 0.148 H 277.6°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#4E52B1
RGBrgb(78, 82, 177)
HSLhsl(238, 39%, 50%)
HSVhsv(238, 56%, 69%)
CMYKcmyk(55.9%, 53.7%, 0%, 30.6%)
CIE-LABlab(39.29, 26.33, -51.33)
CIE-LCHlch(39.29, 57.69, 297.15°)
OKLaboklab(48.7% 0.0195 -0.1469)
OKLCHoklch(48.7% 0.148 277.6)
XYZxyz(14.0925, 10.8277, 42.9338)
Luminance0.1083 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E52B1 #B1AD4E
analogous
#4E83B1 #4E52B1 #7C4EB1
triadic
#4E52B1 #B14E52 #52B14E
tetradic
#4E52B1 #B14E83 #B1AD4E #4EB17C
square
#4E52B1 #B14E83 #B1AD4E #4EB17C
split-complementary
#4E52B1 #B17C4E #83B14E
monochromatic
#292B5C #3B3E87 #4E52B1 #787CC4 #A3A5D6

Accessibility & contrast

On white

6.63
#4E52B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#4E52B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E52B1
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E52B1#FFFFFF#000000##FFFFFF
##4E52B11.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A61B4
Deuteranopia (green-blind)
#0159AF
Tritanopia (blue-blind)
#1A6879
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4e52b1;
/* rgb */ color: rgb(78, 82, 177);
/* oklch */ color: oklch(48.7% 0.148 277.6);
Tailwind
colors: {
  custom: {
    50: '#8882c9',
    500: '#4e52b1',
    950: '#000000',
  },
}
SCSS
$custom: #4e52b1;
$custom-light: #8882c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e52b1",
  "rgb": {
    "r": 78,
    "g": 82,
    "b": 177
  },
  "hsl": {
    "h": 237.576,
    "s": 38.824,
    "l": 50
  },
  "oklch": {
    "l": 0.48701,
    "c": 0.14816,
    "h": 277.6
  },
  "luminance": 0.10829
}

Semantic roles & 50–950 ramp

primary
#4E52B1
secondary
#C4C297
accent
#CA59CF
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #4E52B1

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

Preview Lab → · Contrast checker → · Palette generator →

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