#4D51D3#4D51D3

#4D51D3 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 51.1% C 0.196 H 275.7°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#4D51D3
RGBrgb(77, 81, 211)
HSLhsl(238, 60%, 56%)
HSVhsv(238, 64%, 83%)
CMYKcmyk(63.5%, 61.6%, 0%, 17.3%)
CIE-LABlab(41.48, 38.09, -67.58)
CIE-LCHlch(41.48, 77.58, 299.41°)
OKLaboklab(51.09% 0.0193 -0.1947)
OKLCHoklch(51.09% 0.196 275.7)
XYZxyz(17.7570, 12.1643, 63.0276)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D51D3 #D3CF4D
analogous
#4D94D3 #4D51D3 #8C4DD3
triadic
#4D51D3 #D34D51 #51D34D
tetradic
#4D51D3 #D34D94 #D3CF4D #4DD38C
square
#4D51D3 #D34D94 #D3CF4D #4DD38C
split-complementary
#4D51D3 #D38C4D #94D34D
monochromatic
#212485 #2D31B6 #4D51D3 #7E81DF #AFB1EB

Accessibility & contrast

On white

6.12
#4D51D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#4D51D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D51D3
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D51D3#FFFFFF#000000##FFFFFF
##4D51D31.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D7
Deuteranopia (green-blind)
#005CD0
Tritanopia (blue-blind)
#00728A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4d51d3;
/* rgb */ color: rgb(77, 81, 211);
/* oklch */ color: oklch(51.1% 0.196 275.7);
Tailwind
colors: {
  custom: {
    50: '#8d82e1',
    500: '#4d51d3',
    950: '#000000',
  },
}
SCSS
$custom: #4d51d3;
$custom-light: #8d82e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d51d3",
  "rgb": {
    "r": 77,
    "g": 81,
    "b": 211
  },
  "hsl": {
    "h": 238.209,
    "s": 60.36,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51094,
    "c": 0.19564,
    "h": 275.7
  },
  "luminance": 0.12166
}

Semantic roles & 50–950 ramp

primary
#4D51D3
secondary
#D9D8A2
accent
#DF44E4
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4D51D3

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

Preview Lab → · Contrast checker → · Palette generator →

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