#4D51E4#4D51E4

#4D51E4 is a mid, highly saturated blue. Relative luminance 0.131; OKLCH L 52.5% C 0.217 H 274.8°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#4D51E4
RGBrgb(77, 81, 228)
HSLhsl(238, 74%, 60%)
HSVhsv(238, 66%, 89%)
CMYKcmyk(66.2%, 64.5%, 0%, 10.6%)
CIE-LABlab(42.86, 43.71, -75.03)
CIE-LCHlch(42.86, 86.84, 300.22°)
OKLaboklab(52.53% 0.0181 -0.2165)
OKLCHoklch(52.53% 0.217 274.8)
XYZxyz(20.0020, 13.0623, 74.8509)
Luminance0.1306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D51E4 #E4E04D
analogous
#4D9CE4 #4D51E4 #954DE4
triadic
#4D51E4 #E44D51 #51E44D
tetradic
#4D51E4 #E44D9C #E4E04D #4DE495
square
#4D51E4 #E44D9C #E4E04D #4DE495
split-complementary
#4D51E4 #E4954D #9CE44D
monochromatic
#181C9F #2025D4 #4D51E4 #8285EC #B7B9F4

Accessibility & contrast

On white

5.81
#4D51E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4D51E4
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D51E4#FFFFFF#000000##FFFFFF
##4D51E41.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE9
Deuteranopia (green-blind)
#005EE1
Tritanopia (blue-blind)
#007793
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4d51e4;
/* rgb */ color: rgb(77, 81, 228);
/* oklch */ color: oklch(52.5% 0.217 274.8);
Tailwind
colors: {
  custom: {
    50: '#9082ee',
    500: '#4d51e4',
    950: '#000000',
  },
}
SCSS
$custom: #4d51e4;
$custom-light: #9082ee;
$custom-dark: #000000;
JSON
{
  "hex": "#4d51e4",
  "rgb": {
    "r": 77,
    "g": 81,
    "b": 228
  },
  "hsl": {
    "h": 238.411,
    "s": 73.659,
    "l": 59.804
  },
  "oklch": {
    "l": 0.52532,
    "c": 0.21731,
    "h": 274.8
  },
  "luminance": 0.13064
}

Semantic roles & 50–950 ramp

primary
#4D51E4
secondary
#E4E2A9
accent
#EB37F0
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4D51E4

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

Preview Lab → · Contrast checker → · Palette generator →

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