#4D51D9#4D51D9

#4D51D9 is a mid, highly saturated blue. Relative luminance 0.125; OKLCH L 51.6% C 0.203 H 275.3°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#4D51D9
RGBrgb(77, 81, 217)
HSLhsl(238, 65%, 58%)
HSVhsv(238, 65%, 85%)
CMYKcmyk(64.5%, 62.7%, 0%, 14.9%)
CIE-LABlab(41.95, 40.08, -70.24)
CIE-LCHlch(41.95, 80.87, 299.71°)
OKLaboklab(51.59% 0.019 -0.2025)
OKLCHoklch(51.59% 0.203 275.3)
XYZxyz(18.5233, 12.4708, 67.0631)
Luminance0.1247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D51D9 #D9D54D
analogous
#4D97D9 #4D51D9 #8F4DD9
triadic
#4D51D9 #D94D51 #51D94D
tetradic
#4D51D9 #D94D97 #D9D54D #4DD98F
square
#4D51D9 #D94D97 #D9D54D #4DD98F
split-complementary
#4D51D9 #D98F4D #97D94D
monochromatic
#1E218D #292DC0 #4D51D9 #7F82E4 #B2B4EF

Accessibility & contrast

On white

6.01
#4D51D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#4D51D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D51D9
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D51D9#FFFFFF#000000##FFFFFF
##4D51D91.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DD
Deuteranopia (green-blind)
#005DD6
Tritanopia (blue-blind)
#00748D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4d51d9;
/* rgb */ color: rgb(77, 81, 217);
/* oklch */ color: oklch(51.6% 0.203 275.3);
Tailwind
colors: {
  custom: {
    50: '#8e82e6',
    500: '#4d51d9',
    950: '#000000',
  },
}
SCSS
$custom: #4d51d9;
$custom-light: #8e82e6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d51d9",
  "rgb": {
    "r": 77,
    "g": 81,
    "b": 217
  },
  "hsl": {
    "h": 238.286,
    "s": 64.815,
    "l": 57.647
  },
  "oklch": {
    "l": 0.51594,
    "c": 0.20337,
    "h": 275.3
  },
  "luminance": 0.12472
}

Semantic roles & 50–950 ramp

primary
#4D51D9
secondary
#DDDBA5
accent
#E340E8
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4D51D9

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

Preview Lab → · Contrast checker → · Palette generator →

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