#4D7DC7#4D7DC7

#4D7DC7 is a mid, vivid blue. Relative luminance 0.204; OKLCH L 59.0% C 0.125 H 258.8°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#4D7DC7
RGBrgb(77, 125, 199)
HSLhsl(216, 52%, 54%)
HSVhsv(216, 61%, 78%)
CMYKcmyk(61.3%, 37.2%, 0%, 22%)
CIE-LABlab(52.25, 6.64, -43.39)
CIE-LCHlch(52.25, 43.89, 278.71°)
OKLaboklab(59.02% -0.0244 -0.1231)
OKLCHoklch(59.02% 0.125 258.8)
XYZxyz(20.6993, 20.3667, 56.8621)
Luminance0.2037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7DC7 #C7974D
analogous
#4DBAC7 #4D7DC7 #5A4DC7
triadic
#4D7DC7 #C74D7D #7DC74D
tetradic
#4D7DC7 #C74DBA #C7974D #4DC75A
square
#4D7DC7 #C74DBA #C7974D #4DC75A
split-complementary
#4D7DC7 #C75A4D #BAC74D
monochromatic
#254475 #335FA3 #4D7DC7 #7C9FD6 #AAC1E4

Accessibility & contrast

On white

4.14
#4D7DC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#4D7DC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4D7DC7
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7DC7#FFFFFF#000000##000000
##4D7DC71.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D83CA
Deuteranopia (green-blind)
#4D77C5
Tritanopia (blue-blind)
#008E98
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #4d7dc7;
/* rgb */ color: rgb(77, 125, 199);
/* oklch */ color: oklch(59.0% 0.125 258.8);
Tailwind
colors: {
  custom: {
    50: '#89a2d8',
    500: '#4d7dc7',
    950: '#000000',
  },
}
SCSS
$custom: #4d7dc7;
$custom-light: #89a2d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7dc7",
  "rgb": {
    "r": 77,
    "g": 125,
    "b": 199
  },
  "hsl": {
    "h": 216.393,
    "s": 52.137,
    "l": 54.118
  },
  "oklch": {
    "l": 0.59017,
    "c": 0.12549,
    "h": 258.8
  },
  "luminance": 0.20369
}

Semantic roles & 50–950 ramp

primary
#4D7DC7
secondary
#D2BD9E
accent
#A34CDC
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0F14
muted
#7D7E83

Preview Lab

Preview with #4D7DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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