#4D51CB#4D51CB

#4D51CB is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.4% C 0.185 H 276.1°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#4D51CB
RGBrgb(77, 81, 203)
HSLhsl(238, 55%, 55%)
HSVhsv(238, 62%, 80%)
CMYKcmyk(62.1%, 60.1%, 0%, 20.4%)
CIE-LABlab(40.85, 35.43, -63.99)
CIE-LCHlch(40.85, 73.14, 298.97°)
OKLaboklab(50.44% 0.0196 -0.1841)
OKLCHoklch(50.44% 0.185 276.1)
XYZxyz(16.7790, 11.7731, 57.8766)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D51CB #CBC74D
analogous
#4D90CB #4D51CB #884DCB
triadic
#4D51CB #CB4D51 #51CB4D
tetradic
#4D51CB #CB4D90 #CBC74D #4DCB88
square
#4D51CB #CB4D90 #CBC74D #4DCB88
split-complementary
#4D51CB #CB884D #90CB4D
monochromatic
#24267A #3135A9 #4D51CB #7C7FD9 #ACAEE7

Accessibility & contrast

On white

6.26
#4D51CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#4D51CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D51CB
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D51CB#FFFFFF#000000##FFFFFF
##4D51CB1.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CF
Deuteranopia (green-blind)
#005BC9
Tritanopia (blue-blind)
#006F86
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4d51cb;
/* rgb */ color: rgb(77, 81, 203);
/* oklch */ color: oklch(50.4% 0.185 276.1);
Tailwind
colors: {
  custom: {
    50: '#8c82dc',
    500: '#4d51cb',
    950: '#000000',
  },
}
SCSS
$custom: #4d51cb;
$custom-light: #8c82dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d51cb",
  "rgb": {
    "r": 77,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 238.095,
    "s": 54.783,
    "l": 54.902
  },
  "oklch": {
    "l": 0.50441,
    "c": 0.18516,
    "h": 276.1
  },
  "luminance": 0.11774
}

Semantic roles & 50–950 ramp

primary
#4D51CB
secondary
#D4D39F
accent
#D94ADE
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4D51CB

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

Preview Lab → · Contrast checker → · Palette generator →

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