#4D51DB#4D51DB

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

Color values

HEX#4D51DB
RGBrgb(77, 81, 219)
HSLhsl(238, 66%, 58%)
HSVhsv(238, 65%, 86%)
CMYKcmyk(64.8%, 63%, 0%, 14.1%)
CIE-LABlab(42.12, 40.74, -71.12)
CIE-LCHlch(42.12, 81.97, 299.81°)
OKLaboklab(51.76% 0.0188 -0.2051)
OKLCHoklch(51.76% 0.206 275.2)
XYZxyz(18.7850, 12.5755, 68.4415)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D51DB #DBD74D
analogous
#4D98DB #4D51DB #904DDB
triadic
#4D51DB #DB4D51 #51DB4D
tetradic
#4D51DB #DB4D98 #DBD74D #4DDB90
square
#4D51DB #DB4D98 #DBD74D #4DDB90
split-complementary
#4D51DB #DB904D #98DB4D
monochromatic
#1D2090 #272CC3 #4D51DB #8083E5 #B3B5F0

Accessibility & contrast

On white

5.97
#4D51DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#4D51DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D51DB
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D51DB#FFFFFF#000000##FFFFFF
##4D51DB1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d51db;
/* rgb */ color: rgb(77, 81, 219);
/* oklch */ color: oklch(51.8% 0.206 275.2);
Tailwind
colors: {
  custom: {
    50: '#8f82e7',
    500: '#4d51db',
    950: '#000000',
  },
}
SCSS
$custom: #4d51db;
$custom-light: #8f82e7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d51db",
  "rgb": {
    "r": 77,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 238.31,
    "s": 66.355,
    "l": 58.039
  },
  "oklch": {
    "l": 0.51763,
    "c": 0.20593,
    "h": 275.2
  },
  "luminance": 0.12577
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D51DB

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

Preview Lab → · Contrast checker → · Palette generator →

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