#4D51D7#4D51D7

#4D51D7 is a mid, highly saturated blue. Relative luminance 0.124; OKLCH L 51.4% C 0.201 H 275.4°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#4D51D7
RGBrgb(77, 81, 215)
HSLhsl(238, 63%, 57%)
HSVhsv(238, 64%, 84%)
CMYKcmyk(64.2%, 62.3%, 0%, 15.7%)
CIE-LABlab(41.79, 39.42, -69.36)
CIE-LCHlch(41.79, 79.78, 299.61°)
OKLaboklab(51.43% 0.0191 -0.1999)
OKLCHoklch(51.43% 0.201 275.4)
XYZxyz(18.2647, 12.3674, 65.7014)
Luminance0.1237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D51D7 #D7D34D
analogous
#4D96D7 #4D51D7 #8E4DD7
triadic
#4D51D7 #D74D51 #51D74D
tetradic
#4D51D7 #D74D96 #D7D34D #4DD78E
square
#4D51D7 #D74D96 #D7D34D #4DD78E
split-complementary
#4D51D7 #D78E4D #96D74D
monochromatic
#1F228A #2A2FBC #4D51D7 #7F82E2 #B1B3ED

Accessibility & contrast

On white

6.05
#4D51D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#4D51D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D51D7
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D51D7#FFFFFF#000000##FFFFFF
##4D51D71.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DB
Deuteranopia (green-blind)
#005DD4
Tritanopia (blue-blind)
#00738C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4d51d7;
/* rgb */ color: rgb(77, 81, 215);
/* oklch */ color: oklch(51.4% 0.201 275.4);
Tailwind
colors: {
  custom: {
    50: '#8e82e4',
    500: '#4d51d7',
    950: '#000000',
  },
}
SCSS
$custom: #4d51d7;
$custom-light: #8e82e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d51d7",
  "rgb": {
    "r": 77,
    "g": 81,
    "b": 215
  },
  "hsl": {
    "h": 238.261,
    "s": 63.303,
    "l": 57.255
  },
  "oklch": {
    "l": 0.51426,
    "c": 0.20081,
    "h": 275.4
  },
  "luminance": 0.12369
}

Semantic roles & 50–950 ramp

primary
#4D51D7
secondary
#DCDAA4
accent
#E241E6
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4D51D7

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

Preview Lab → · Contrast checker → · Palette generator →

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