#4D51DC#4D51DC

#4D51DC is a mid, highly saturated blue. Relative luminance 0.126; OKLCH L 51.8% C 0.207 H 275.2°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#4D51DC
RGBrgb(77, 81, 220)
HSLhsl(238, 67%, 58%)
HSVhsv(238, 65%, 86%)
CMYKcmyk(65%, 63.2%, 0%, 13.7%)
CIE-LABlab(42.20, 41.07, -71.56)
CIE-LCHlch(42.20, 82.51, 299.86°)
OKLaboklab(51.85% 0.0188 -0.2064)
OKLCHoklch(51.85% 0.207 275.2)
XYZxyz(18.9170, 12.6283, 69.1369)
Luminance0.1263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D51DC #DCD84D
analogous
#4D98DC #4D51DC #904DDC
triadic
#4D51DC #DC4D51 #51DC4D
tetradic
#4D51DC #DC4D98 #DCD84D #4DDC90
square
#4D51DC #DC4D98 #DCD84D #4DDC90
split-complementary
#4D51DC #DC904D #98DC4D
monochromatic
#1D2092 #272BC5 #4D51DC #8083E6 #B3B5F0

Accessibility & contrast

On white

5.96
#4D51DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#4D51DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D51DC
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D51DC#FFFFFF#000000##FFFFFF
##4D51DC1.005.963.535.96
#FFFFFF5.961.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE0
Deuteranopia (green-blind)
#005DD9
Tritanopia (blue-blind)
#00758F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4d51dc;
/* rgb */ color: rgb(77, 81, 220);
/* oklch */ color: oklch(51.8% 0.207 275.2);
Tailwind
colors: {
  custom: {
    50: '#8f82e8',
    500: '#4d51dc',
    950: '#000000',
  },
}
SCSS
$custom: #4d51dc;
$custom-light: #8f82e8;
$custom-dark: #000000;
JSON
{
  "hex": "#4d51dc",
  "rgb": {
    "r": 77,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 238.322,
    "s": 67.136,
    "l": 58.235
  },
  "oklch": {
    "l": 0.51847,
    "c": 0.20721,
    "h": 275.2
  },
  "luminance": 0.1263
}

Semantic roles & 50–950 ramp

primary
#4D51DC
secondary
#DFDDA6
accent
#E53EEA
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4D51DC

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

Preview Lab → · Contrast checker → · Palette generator →

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