#4D47CB#4D47CB

#4D47CB is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.7% C 0.197 H 278.2°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#4D47CB
RGBrgb(77, 71, 203)
HSLhsl(243, 56%, 54%)
HSVhsv(243, 65%, 80%)
CMYKcmyk(62.1%, 65%, 0%, 20.4%)
CIE-LABlab(38.54, 41.50, -67.76)
CIE-LCHlch(38.54, 79.46, 301.49°)
OKLaboklab(48.75% 0.0281 -0.1952)
OKLCHoklch(48.75% 0.197 278.2)
XYZxyz(16.0898, 10.3948, 57.6468)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D47CB #C5CB47
analogous
#4783CB #4D47CB #8F47CB
triadic
#4D47CB #CB4D47 #47CB4D
tetradic
#4D47CB #CB4783 #C5CB47 #47CB8F
square
#4D47CB #CB4783 #C5CB47 #47CB8F
split-complementary
#4D47CB #CB8F47 #83CB47
monochromatic
#252176 #342FA6 #4D47CB #7B77D8 #A9A6E6

Accessibility & contrast

On white

6.82
#4D47CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#4D47CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D47CB
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D47CB#FFFFFF#000000##FFFFFF
##4D47CB1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CF
Deuteranopia (green-blind)
#0055C8
Tritanopia (blue-blind)
#006983
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4d47cb;
/* rgb */ color: rgb(77, 71, 203);
/* oklch */ color: oklch(48.7% 0.197 278.2);
Tailwind
colors: {
  custom: {
    50: '#8c7bdc',
    500: '#4d47cb',
    950: '#000000',
  },
}
SCSS
$custom: #4d47cb;
$custom-light: #8c7bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d47cb",
  "rgb": {
    "r": 77,
    "g": 71,
    "b": 203
  },
  "hsl": {
    "h": 242.727,
    "s": 55.932,
    "l": 53.725
  },
  "oklch": {
    "l": 0.48748,
    "c": 0.19726,
    "h": 278.2
  },
  "luminance": 0.10396
}

Semantic roles & 50–950 ramp

primary
#4D47CB
secondary
#D1D39B
accent
#DF49D8
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4D47CB

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

Preview Lab → · Contrast checker → · Palette generator →

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