#4D51D6#4D51D6

#4D51D6 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.3% C 0.200 H 275.5°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#4D51D6
RGBrgb(77, 81, 214)
HSLhsl(238, 63%, 57%)
HSVhsv(238, 64%, 84%)
CMYKcmyk(64%, 62.1%, 0%, 16.1%)
CIE-LABlab(41.71, 39.09, -68.92)
CIE-LCHlch(41.71, 79.23, 299.56°)
OKLaboklab(51.34% 0.0191 -0.1986)
OKLCHoklch(51.34% 0.2 275.5)
XYZxyz(18.1366, 12.3161, 65.0268)
Luminance0.1232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D51D6 #D6D24D
analogous
#4D96D6 #4D51D6 #8E4DD6
triadic
#4D51D6 #D64D51 #51D64D
tetradic
#4D51D6 #D64D96 #D6D24D #4DD68E
square
#4D51D6 #D64D96 #D6D24D #4DD68E
split-complementary
#4D51D6 #D68E4D #96D64D
monochromatic
#202389 #2B2FBB #4D51D6 #7F82E1 #B0B2ED

Accessibility & contrast

On white

6.06
#4D51D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#4D51D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D51D6
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D51D6#FFFFFF#000000##FFFFFF
##4D51D61.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DA
Deuteranopia (green-blind)
#005CD3
Tritanopia (blue-blind)
#00738C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4d51d6;
/* rgb */ color: rgb(77, 81, 214);
/* oklch */ color: oklch(51.3% 0.200 275.5);
Tailwind
colors: {
  custom: {
    50: '#8e82e4',
    500: '#4d51d6',
    950: '#000000',
  },
}
SCSS
$custom: #4d51d6;
$custom-light: #8e82e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d51d6",
  "rgb": {
    "r": 77,
    "g": 81,
    "b": 214
  },
  "hsl": {
    "h": 238.248,
    "s": 62.557,
    "l": 57.059
  },
  "oklch": {
    "l": 0.51343,
    "c": 0.19952,
    "h": 275.5
  },
  "luminance": 0.12318
}

Semantic roles & 50–950 ramp

primary
#4D51D6
secondary
#DBDAA4
accent
#E142E6
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4D51D6

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

Preview Lab → · Contrast checker → · Palette generator →

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