#4D51EA#4D51EA

#4D51EA is a mid, highly saturated blue. Relative luminance 0.134; OKLCH L 53.1% C 0.225 H 274.5°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#4D51EA
RGBrgb(77, 81, 234)
HSLhsl(238, 79%, 61%)
HSVhsv(238, 67%, 92%)
CMYKcmyk(67.1%, 65.4%, 0%, 8.2%)
CIE-LABlab(43.36, 45.68, -77.61)
CIE-LCHlch(43.36, 90.05, 300.48°)
OKLaboklab(53.06% 0.0176 -0.2241)
OKLCHoklch(53.06% 0.225 274.5)
XYZxyz(20.8494, 13.4012, 79.3139)
Luminance0.1340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D51EA #EAE64D
analogous
#4D9FEA #4D51EA #974DEA
triadic
#4D51EA #EA4D51 #51EA4D
tetradic
#4D51EA #EA4D9F #EAE64D #4DEA97
square
#4D51EA #EA4D9F #EAE64D #4DEA97
split-complementary
#4D51EA #EA974D #9FEA4D
monochromatic
#1418A9 #1A1FDF #4D51EA #8487F0 #BABCF7

Accessibility & contrast

On white

5.71
#4D51EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#4D51EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D51EA
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D51EA#FFFFFF#000000##FFFFFF
##4D51EA1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EEF
Deuteranopia (green-blind)
#005FE7
Tritanopia (blue-blind)
#007997
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4d51ea;
/* rgb */ color: rgb(77, 81, 234);
/* oklch */ color: oklch(53.1% 0.225 274.5);
Tailwind
colors: {
  custom: {
    50: '#9182f2',
    500: '#4d51ea',
    950: '#000000',
  },
}
SCSS
$custom: #4d51ea;
$custom-light: #9182f2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d51ea",
  "rgb": {
    "r": 77,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 238.471,
    "s": 78.894,
    "l": 60.98
  },
  "oklch": {
    "l": 0.53055,
    "c": 0.22477,
    "h": 274.5
  },
  "luminance": 0.13403
}

Semantic roles & 50–950 ramp

primary
#4D51EA
secondary
#E7E5AC
accent
#D60ADB
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A17
muted
#7E7C85

Preview Lab

Preview with #4D51EA

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

Preview Lab → · Contrast checker → · Palette generator →

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