#4D4DB7#4D4DB7

#4D4DB7 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.1% C 0.163 H 278.3°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#4D4DB7
RGBrgb(77, 77, 183)
HSLhsl(240, 42%, 51%)
HSVhsv(240, 58%, 72%)
CMYKcmyk(57.9%, 57.9%, 0%, 28.2%)
CIE-LABlab(38.38, 31.27, -56.34)
CIE-LCHlch(38.38, 64.44, 299.03°)
OKLaboklab(48.14% 0.0237 -0.1617)
OKLCHoklch(48.14% 0.163 278.3)
XYZxyz(14.2590, 10.3034, 46.0279)
Luminance0.1030 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D4DB7 #B7B74D
analogous
#4D82B7 #4D4DB7 #824DB7
triadic
#4D4DB7 #B74D4D #4DB74D
tetradic
#4D4DB7 #B74D82 #B7B74D #4DB782
square
#4D4DB7 #B74D82 #B7B74D #4DB782
split-complementary
#4D4DB7 #B7824D #82B74D
monochromatic
#282862 #39398E #4D4DB7 #7979C9 #A4A4DA

Accessibility & contrast

On white

6.86
#4D4DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#4D4DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D4DB7
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D4DB7#FFFFFF#000000##FFFFFF
##4D4DB71.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBB
Deuteranopia (green-blind)
#0056B5
Tritanopia (blue-blind)
#09667A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4d4db7;
/* rgb */ color: rgb(77, 77, 183);
/* oklch */ color: oklch(48.1% 0.163 278.3);
Tailwind
colors: {
  custom: {
    50: '#897fcd',
    500: '#4d4db7',
    950: '#000000',
  },
}
SCSS
$custom: #4d4db7;
$custom-light: #897fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#4d4db7",
  "rgb": {
    "r": 77,
    "g": 77,
    "b": 183
  },
  "hsl": {
    "h": 240,
    "s": 42.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48141,
    "c": 0.16338,
    "h": 278.3
  },
  "luminance": 0.10304
}

Semantic roles & 50–950 ramp

primary
#4D4DB7
secondary
#C7C798
accent
#D256D2
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A14
muted
#7D7C82

Preview Lab

Preview with #4D4DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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