#4E52B0#4E52B0

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

Color values

HEX#4E52B0
RGBrgb(78, 82, 176)
HSLhsl(238, 39%, 50%)
HSVhsv(238, 56%, 69%)
CMYKcmyk(55.7%, 53.4%, 0%, 31%)
CIE-LABlab(39.22, 25.99, -50.85)
CIE-LCHlch(39.22, 57.11, 297.07°)
OKLaboklab(48.63% 0.0194 -0.1454)
OKLCHoklch(48.63% 0.147 277.6)
XYZxyz(13.9932, 10.7879, 42.4108)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E52B0 #B0AC4E
analogous
#4E83B0 #4E52B0 #7B4EB0
triadic
#4E52B0 #B04E52 #52B04E
tetradic
#4E52B0 #B04E83 #B0AC4E #4EB07B
square
#4E52B0 #B04E83 #B0AC4E #4EB07B
split-complementary
#4E52B0 #B07B4E #83B04E
monochromatic
#282A5B #3B3E86 #4E52B0 #787BC3 #A2A5D6

Accessibility & contrast

On white

6.65
#4E52B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#4E52B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E52B0
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E52B0#FFFFFF#000000##FFFFFF
##4E52B01.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C60B3
Deuteranopia (green-blind)
#0558AE
Tritanopia (blue-blind)
#1C6779
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4e52b0;
/* rgb */ color: rgb(78, 82, 176);
/* oklch */ color: oklch(48.6% 0.147 277.6);
Tailwind
colors: {
  custom: {
    50: '#8882c8',
    500: '#4e52b0',
    950: '#000000',
  },
}
SCSS
$custom: #4e52b0;
$custom-light: #8882c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e52b0",
  "rgb": {
    "r": 78,
    "g": 82,
    "b": 176
  },
  "hsl": {
    "h": 237.551,
    "s": 38.583,
    "l": 49.804
  },
  "oklch": {
    "l": 0.48629,
    "c": 0.14674,
    "h": 277.6
  },
  "luminance": 0.10789
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E52B0

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

Preview Lab → · Contrast checker → · Palette generator →

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