#4D51E1#4D51E1

#4D51E1 is a mid, highly saturated blue. Relative luminance 0.129; OKLCH L 52.3% C 0.214 H 274.9°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#4D51E1
RGBrgb(77, 81, 225)
HSLhsl(238, 71%, 59%)
HSVhsv(238, 66%, 88%)
CMYKcmyk(65.8%, 64%, 0%, 11.8%)
CIE-LABlab(42.61, 42.72, -73.74)
CIE-LCHlch(42.61, 85.22, 300.09°)
OKLaboklab(52.27% 0.0184 -0.2127)
OKLCHoklch(52.27% 0.214 274.9)
XYZxyz(19.5891, 12.8971, 72.6766)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D51E1 #E1DD4D
analogous
#4D9BE1 #4D51E1 #934DE1
triadic
#4D51E1 #E14D51 #51E14D
tetradic
#4D51E1 #E14D9B #E1DD4D #4DE193
square
#4D51E1 #E14D9B #E1DD4D #4DE193
split-complementary
#4D51E1 #E1934D #9BE14D
monochromatic
#1A1D9A #2327CE #4D51E1 #8184EA #B6B7F3

Accessibility & contrast

On white

5.87
#4D51E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#4D51E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D51E1
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D51E1#FFFFFF#000000##FFFFFF
##4D51E11.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE6
Deuteranopia (green-blind)
#005EDE
Tritanopia (blue-blind)
#007692
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4d51e1;
/* rgb */ color: rgb(77, 81, 225);
/* oklch */ color: oklch(52.3% 0.214 274.9);
Tailwind
colors: {
  custom: {
    50: '#9082eb',
    500: '#4d51e1',
    950: '#000000',
  },
}
SCSS
$custom: #4d51e1;
$custom-light: #9082eb;
$custom-dark: #000000;
JSON
{
  "hex": "#4d51e1",
  "rgb": {
    "r": 77,
    "g": 81,
    "b": 225
  },
  "hsl": {
    "h": 238.378,
    "s": 71.154,
    "l": 59.216
  },
  "oklch": {
    "l": 0.52274,
    "c": 0.21353,
    "h": 274.9
  },
  "luminance": 0.12899
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D51E1

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

Preview Lab → · Contrast checker → · Palette generator →

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