#4D51D2#4D51D2

#4D51D2 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 51.0% C 0.194 H 275.7°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#4D51D2
RGBrgb(77, 81, 210)
HSLhsl(238, 60%, 56%)
HSVhsv(238, 63%, 82%)
CMYKcmyk(63.3%, 61.4%, 0%, 17.6%)
CIE-LABlab(41.40, 37.76, -67.14)
CIE-LCHlch(41.40, 77.03, 299.35°)
OKLaboklab(51.01% 0.0193 -0.1934)
OKLCHoklch(51.01% 0.194 275.7)
XYZxyz(17.6320, 12.1143, 62.3694)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D51D2 #D2CE4D
analogous
#4D94D2 #4D51D2 #8C4DD2
triadic
#4D51D2 #D24D51 #51D24D
tetradic
#4D51D2 #D24D94 #D2CE4D #4DD28C
square
#4D51D2 #D24D94 #D2CE4D #4DD28C
split-complementary
#4D51D2 #D28C4D #94D24D
monochromatic
#212483 #2E32B4 #4D51D2 #7E81DE #AFB1EB

Accessibility & contrast

On white

6.13
#4D51D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#4D51D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D51D2
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D51D2#FFFFFF#000000##FFFFFF
##4D51D21.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D6
Deuteranopia (green-blind)
#005CCF
Tritanopia (blue-blind)
#00718A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4d51d2;
/* rgb */ color: rgb(77, 81, 210);
/* oklch */ color: oklch(51.0% 0.194 275.7);
Tailwind
colors: {
  custom: {
    50: '#8d82e1',
    500: '#4d51d2',
    950: '#000000',
  },
}
SCSS
$custom: #4d51d2;
$custom-light: #8d82e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d51d2",
  "rgb": {
    "r": 77,
    "g": 81,
    "b": 210
  },
  "hsl": {
    "h": 238.195,
    "s": 59.641,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51011,
    "c": 0.19434,
    "h": 275.7
  },
  "luminance": 0.12116
}

Semantic roles & 50–950 ramp

primary
#4D51D2
secondary
#D9D7A2
accent
#DE45E3
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4D51D2

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

Preview Lab → · Contrast checker → · Palette generator →

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