#4D51EC#4D51EC

#4D51EC is a mid, highly saturated blue. Relative luminance 0.135; OKLCH L 53.2% C 0.227 H 274.4°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#4D51EC
RGBrgb(77, 81, 236)
HSLhsl(238, 81%, 61%)
HSVhsv(238, 67%, 93%)
CMYKcmyk(67.4%, 65.7%, 0%, 7.5%)
CIE-LABlab(43.53, 46.33, -78.46)
CIE-LCHlch(43.53, 91.11, 300.56°)
OKLaboklab(53.23% 0.0174 -0.2266)
OKLCHoklch(53.23% 0.227 274.4)
XYZxyz(21.1383, 13.5168, 80.8356)
Luminance0.1352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D51EC #ECE84D
analogous
#4DA0EC #4D51EC #994DEC
triadic
#4D51EC #EC4D51 #51EC4D
tetradic
#4D51EC #EC4DA0 #ECE84D #4DEC99
square
#4D51EC #EC4DA0 #ECE84D #4DEC99
split-complementary
#4D51EC #EC994D #A0EC4D
monochromatic
#1216AC #181DE4 #4D51EC #8487F2 #BCBDF8

Accessibility & contrast

On white

5.67
#4D51EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#4D51EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D51EC
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D51EC#FFFFFF#000000##FFFFFF
##4D51EC1.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EF1
Deuteranopia (green-blind)
#0060E9
Tritanopia (blue-blind)
#007A98
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #4d51ec;
/* rgb */ color: rgb(77, 81, 236);
/* oklch */ color: oklch(53.2% 0.227 274.4);
Tailwind
colors: {
  custom: {
    50: '#9282f3',
    500: '#4d51ec',
    950: '#000000',
  },
}
SCSS
$custom: #4d51ec;
$custom-light: #9282f3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d51ec",
  "rgb": {
    "r": 77,
    "g": 81,
    "b": 236
  },
  "hsl": {
    "h": 238.491,
    "s": 80.711,
    "l": 61.373
  },
  "oklch": {
    "l": 0.53231,
    "c": 0.22724,
    "h": 274.4
  },
  "luminance": 0.13519
}

Semantic roles & 50–950 ramp

primary
#4D51EC
secondary
#E8E7AD
accent
#D808DD
background
#F9F8FF
surface
#F2EFFE
border
#CCCAD6
text
#0F0A17
muted
#7E7C85

Preview Lab

Preview with #4D51EC

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

Preview Lab → · Contrast checker → · Palette generator →

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