#4D51DA#4D51DA

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

Color values

HEX#4D51DA
RGBrgb(77, 81, 218)
HSLhsl(238, 66%, 58%)
HSVhsv(238, 65%, 85%)
CMYKcmyk(64.7%, 62.8%, 0%, 14.5%)
CIE-LABlab(42.04, 40.41, -70.68)
CIE-LCHlch(42.04, 81.42, 299.76°)
OKLaboklab(51.68% 0.0189 -0.2038)
OKLCHoklch(51.68% 0.205 275.3)
XYZxyz(18.6537, 12.5230, 67.7502)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D51DA #DAD64D
analogous
#4D97DA #4D51DA #8F4DDA
triadic
#4D51DA #DA4D51 #51DA4D
tetradic
#4D51DA #DA4D97 #DAD64D #4DDA8F
square
#4D51DA #DA4D97 #DAD64D #4DDA8F
split-complementary
#4D51DA #DA8F4D #97DA4D
monochromatic
#1E218F #282DC2 #4D51DA #8083E5 #B2B4EF

Accessibility & contrast

On white

5.99
#4D51DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#4D51DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D51DA
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D51DA#FFFFFF#000000##FFFFFF
##4D51DA1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADE
Deuteranopia (green-blind)
#005DD7
Tritanopia (blue-blind)
#00748E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4d51da;
/* rgb */ color: rgb(77, 81, 218);
/* oklch */ color: oklch(51.7% 0.205 275.3);
Tailwind
colors: {
  custom: {
    50: '#8e82e6',
    500: '#4d51da',
    950: '#000000',
  },
}
SCSS
$custom: #4d51da;
$custom-light: #8e82e6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d51da",
  "rgb": {
    "r": 77,
    "g": 81,
    "b": 218
  },
  "hsl": {
    "h": 238.298,
    "s": 65.581,
    "l": 57.843
  },
  "oklch": {
    "l": 0.51678,
    "c": 0.20465,
    "h": 275.3
  },
  "luminance": 0.12525
}

Semantic roles & 50–950 ramp

primary
#4D51DA
secondary
#DEDCA5
accent
#E43FE9
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4D51DA

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

Preview Lab → · Contrast checker → · Palette generator →

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