#4D51E7#4D51E7

#4D51E7 is a mid, highly saturated blue. Relative luminance 0.132; OKLCH L 52.8% C 0.221 H 274.6°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#4D51E7
RGBrgb(77, 81, 231)
HSLhsl(238, 76%, 60%)
HSVhsv(238, 67%, 91%)
CMYKcmyk(66.7%, 64.9%, 0%, 9.4%)
CIE-LABlab(43.11, 44.70, -76.32)
CIE-LCHlch(43.11, 88.45, 300.35°)
OKLaboklab(52.79% 0.0179 -0.2203)
OKLCHoklch(52.79% 0.221 274.6)
XYZxyz(20.4220, 13.2303, 77.0633)
Luminance0.1323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D51E7 #E7E34D
analogous
#4D9EE7 #4D51E7 #964DE7
triadic
#4D51E7 #E74D51 #51E74D
tetradic
#4D51E7 #E74D9E #E7E34D #4DE796
square
#4D51E7 #E74D9E #E7E34D #4DE796
split-complementary
#4D51E7 #E7964D #9EE74D
monochromatic
#161AA4 #1D22D9 #4D51E7 #8386EE #B9BAF6

Accessibility & contrast

On white

5.76
#4D51E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#4D51E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D51E7
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D51E7#FFFFFF#000000##FFFFFF
##4D51E71.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DEC
Deuteranopia (green-blind)
#005FE4
Tritanopia (blue-blind)
#007895
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4d51e7;
/* rgb */ color: rgb(77, 81, 231);
/* oklch */ color: oklch(52.8% 0.221 274.6);
Tailwind
colors: {
  custom: {
    50: '#9182f0',
    500: '#4d51e7',
    950: '#000000',
  },
}
SCSS
$custom: #4d51e7;
$custom-light: #9182f0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d51e7",
  "rgb": {
    "r": 77,
    "g": 81,
    "b": 231
  },
  "hsl": {
    "h": 238.442,
    "s": 76.238,
    "l": 60.392
  },
  "oklch": {
    "l": 0.52793,
    "c": 0.22104,
    "h": 274.6
  },
  "luminance": 0.13232
}

Semantic roles & 50–950 ramp

primary
#4D51E7
secondary
#E5E4AA
accent
#D30DD8
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A17
muted
#7E7C85

Preview Lab

Preview with #4D51E7

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

Preview Lab → · Contrast checker → · Palette generator →

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