#4D51CA#4D51CA

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

Color values

HEX#4D51CA
RGBrgb(77, 81, 202)
HSLhsl(238, 54%, 55%)
HSVhsv(238, 62%, 79%)
CMYKcmyk(61.9%, 59.9%, 0%, 20.8%)
CIE-LABlab(40.78, 35.10, -63.53)
CIE-LCHlch(40.78, 72.58, 298.92°)
OKLaboklab(50.36% 0.0196 -0.1828)
OKLCHoklch(50.36% 0.184 276.1)
XYZxyz(16.6602, 11.7256, 57.2510)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D51CA #CAC64D
analogous
#4D90CA #4D51CA #884DCA
triadic
#4D51CA #CA4D51 #51CA4D
tetradic
#4D51CA #CA4D90 #CAC64D #4DCA88
square
#4D51CA #CA4D90 #CAC64D #4DCA88
split-complementary
#4D51CA #CA884D #90CA4D
monochromatic
#242779 #3236A8 #4D51CA #7C7FD8 #ABADE6

Accessibility & contrast

On white

6.28
#4D51CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4D51CA
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D51CA#FFFFFF#000000##FFFFFF
##4D51CA1.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d51ca;
/* rgb */ color: rgb(77, 81, 202);
/* oklch */ color: oklch(50.4% 0.184 276.1);
Tailwind
colors: {
  custom: {
    50: '#8c82db',
    500: '#4d51ca',
    950: '#000000',
  },
}
SCSS
$custom: #4d51ca;
$custom-light: #8c82db;
$custom-dark: #000000;
JSON
{
  "hex": "#4d51ca",
  "rgb": {
    "r": 77,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 238.08,
    "s": 54.113,
    "l": 54.706
  },
  "oklch": {
    "l": 0.5036,
    "c": 0.18384,
    "h": 276.1
  },
  "luminance": 0.11727
}

Semantic roles & 50–950 ramp

primary
#4D51CA
secondary
#D4D29F
accent
#D94ADD
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4D51CA

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

Preview Lab → · Contrast checker → · Palette generator →

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