#4D5FA6#4D5FA6

#4D5FA6 is a mid, moderate blue. Relative luminance 0.125; OKLCH L 50.5% C 0.115 H 271.1°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#4D5FA6
RGBrgb(77, 95, 166)
HSLhsl(228, 37%, 48%)
HSVhsv(228, 54%, 65%)
CMYKcmyk(53.6%, 42.8%, 0%, 34.9%)
CIE-LABlab(42.02, 14.17, -40.46)
CIE-LCHlch(42.02, 42.87, 289.31°)
OKLaboklab(50.54% 0.0022 -0.1148)
OKLCHoklch(50.54% 0.115 271.1)
XYZxyz(14.0335, 12.5144, 37.7450)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D5FA6 #A6944D
analogous
#4D8CA6 #4D5FA6 #674DA6
triadic
#4D5FA6 #A64D5F #5FA64D
tetradic
#4D5FA6 #A64D8C #A6944D #4DA667
square
#4D5FA6 #A64D8C #A6944D #4DA667
split-complementary
#4D5FA6 #A6674D #8CA64D
monochromatic
#262F52 #3A477C #4D5FA6 #7282BE #9CA7D1

Accessibility & contrast

On white

5.99
#4D5FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#4D5FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D5FA6
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D5FA6#FFFFFF#000000##FFFFFF
##4D5FA61.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4167A9
Deuteranopia (green-blind)
#3760A4
Tritanopia (blue-blind)
#226E7A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4d5fa6;
/* rgb */ color: rgb(77, 95, 166);
/* oklch */ color: oklch(50.5% 0.115 271.1);
Tailwind
colors: {
  custom: {
    50: '#858cc1',
    500: '#4d5fa6',
    950: '#000000',
  },
}
SCSS
$custom: #4d5fa6;
$custom-light: #858cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d5fa6",
  "rgb": {
    "r": 77,
    "g": 95,
    "b": 166
  },
  "hsl": {
    "h": 227.865,
    "s": 36.626,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50535,
    "c": 0.11484,
    "h": 271.1
  },
  "luminance": 0.12515
}

Semantic roles & 50–950 ramp

primary
#4D5FA6
secondary
#BEB591
accent
#B65BCD
background
#F8F8FB
surface
#F0F0F7
border
#CBCBD0
text
#0B0C12
muted
#7C7D81

Preview Lab

Preview with #4D5FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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