#4D51DF#4D51DF

#4D51DF is a mid, highly saturated blue. Relative luminance 0.128; OKLCH L 52.1% C 0.211 H 275.0°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#4D51DF
RGBrgb(77, 81, 223)
HSLhsl(238, 70%, 59%)
HSVhsv(238, 65%, 87%)
CMYKcmyk(65.5%, 63.7%, 0%, 12.5%)
CIE-LABlab(42.44, 42.06, -72.87)
CIE-LCHlch(42.44, 84.14, 300.00°)
OKLaboklab(52.1% 0.0185 -0.2102)
OKLCHoklch(52.1% 0.211 275)
XYZxyz(19.3179, 12.7887, 71.2482)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D51DF #DFDB4D
analogous
#4D9ADF #4D51DF #924DDF
triadic
#4D51DF #DF4D51 #51DF4D
tetradic
#4D51DF #DF4D9A #DFDB4D #4DDF92
square
#4D51DF #DF4D9A #DFDB4D #4DDF92
split-complementary
#4D51DF #DF924D #9ADF4D
monochromatic
#1B1E97 #2429CA #4D51DF #8184E8 #B5B6F2

Accessibility & contrast

On white

5.90
#4D51DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#4D51DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D51DF
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D51DF#FFFFFF#000000##FFFFFF
##4D51DF1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE4
Deuteranopia (green-blind)
#005EDC
Tritanopia (blue-blind)
#007691
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4d51df;
/* rgb */ color: rgb(77, 81, 223);
/* oklch */ color: oklch(52.1% 0.211 275.0);
Tailwind
colors: {
  custom: {
    50: '#8f82ea',
    500: '#4d51df',
    950: '#000000',
  },
}
SCSS
$custom: #4d51df;
$custom-light: #8f82ea;
$custom-dark: #000000;
JSON
{
  "hex": "#4d51df",
  "rgb": {
    "r": 77,
    "g": 81,
    "b": 223
  },
  "hsl": {
    "h": 238.356,
    "s": 69.524,
    "l": 58.824
  },
  "oklch": {
    "l": 0.52102,
    "c": 0.21102,
    "h": 275
  },
  "luminance": 0.1279
}

Semantic roles & 50–950 ramp

primary
#4D51DF
secondary
#E1DFA7
accent
#E73BEC
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4D51DF

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

Preview Lab → · Contrast checker → · Palette generator →

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