#4D52E1#4D52E1

#4D52E1 is a mid, highly saturated blue. Relative luminance 0.130; OKLCH L 52.4% C 0.212 H 274.8°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#4D52E1
RGBrgb(77, 82, 225)
HSLhsl(238, 71%, 59%)
HSVhsv(238, 66%, 88%)
CMYKcmyk(65.8%, 63.6%, 0%, 11.8%)
CIE-LABlab(42.83, 42.13, -73.37)
CIE-LCHlch(42.83, 84.60, 299.86°)
OKLaboklab(52.44% 0.0177 -0.2117)
OKLCHoklch(52.44% 0.212 274.8)
XYZxyz(19.6640, 13.0469, 72.7016)
Luminance0.1305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D52E1 #E1DC4D
analogous
#4D9CE1 #4D52E1 #924DE1
triadic
#4D52E1 #E14D52 #52E14D
tetradic
#4D52E1 #E14D9C #E1DC4D #4DE192
square
#4D52E1 #E14D9C #E1DC4D #4DE192
split-complementary
#4D52E1 #E1924D #9CE14D
monochromatic
#1A1E9A #2329CE #4D52E1 #8185EA #B6B8F3

Accessibility & contrast

On white

5.82
#4D52E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#4D52E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D52E1
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D52E1#FFFFFF#000000##FFFFFF
##4D52E11.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE6
Deuteranopia (green-blind)
#005FDE
Tritanopia (blue-blind)
#007792
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4d52e1;
/* rgb */ color: rgb(77, 82, 225);
/* oklch */ color: oklch(52.4% 0.212 274.8);
Tailwind
colors: {
  custom: {
    50: '#9083eb',
    500: '#4d52e1',
    950: '#000000',
  },
}
SCSS
$custom: #4d52e1;
$custom-light: #9083eb;
$custom-dark: #000000;
JSON
{
  "hex": "#4d52e1",
  "rgb": {
    "r": 77,
    "g": 82,
    "b": 225
  },
  "hsl": {
    "h": 237.973,
    "s": 71.154,
    "l": 59.216
  },
  "oklch": {
    "l": 0.52439,
    "c": 0.21239,
    "h": 274.8
  },
  "luminance": 0.13049
}

Semantic roles & 50–950 ramp

primary
#4D52E1
secondary
#E2E0A8
accent
#E83AEE
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4D52E1

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

Preview Lab → · Contrast checker → · Palette generator →

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