#4D508F#4D508F

#4D508F is a mid, moderate blue. Relative luminance 0.093; OKLCH L 45.9% C 0.101 H 279.5°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#4D508F
RGBrgb(77, 80, 143)
HSLhsl(237, 30%, 43%)
HSVhsv(237, 46%, 56%)
CMYKcmyk(46.2%, 44.1%, 0%, 43.9%)
CIE-LABlab(36.55, 16.30, -35.36)
CIE-LCHlch(36.55, 38.93, 294.75°)
OKLaboklab(45.93% 0.0168 -0.1)
OKLCHoklch(45.93% 0.101 279.5)
XYZxyz(10.8857, 9.2977, 27.2023)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D508F #8F8C4D
analogous
#4D718F #4D508F #6B4D8F
triadic
#4D508F #8F4D50 #508F4D
tetradic
#4D508F #8F4D71 #8F8C4D #4D8F6B
square
#4D508F #8F4D71 #8F8C4D #4D8F6B
split-complementary
#4D508F #8F6B4D #718F4D
monochromatic
#22233F #383A67 #4D508F #6A6DAF #9294C4

Accessibility & contrast

On white

7.34
#4D508F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#4D508F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D508F
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D508F#FFFFFF#000000##FFFFFF
##4D508F1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385991
Deuteranopia (green-blind)
#33548E
Tritanopia (blue-blind)
#375D68
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4d508f;
/* rgb */ color: rgb(77, 80, 143);
/* oklch */ color: oklch(45.9% 0.101 279.5);
Tailwind
colors: {
  custom: {
    50: '#8381b0',
    500: '#4d508f',
    950: '#000000',
  },
}
SCSS
$custom: #4d508f;
$custom-light: #8381b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d508f",
  "rgb": {
    "r": 77,
    "g": 80,
    "b": 143
  },
  "hsl": {
    "h": 237.273,
    "s": 30,
    "l": 43.137
  },
  "oklch": {
    "l": 0.45929,
    "c": 0.1014,
    "h": 279.5
  },
  "luminance": 0.09298
}

Semantic roles & 50–950 ramp

primary
#4D508F
secondary
#B1AF87
accent
#C262C6
background
#F8F7FA
surface
#EFEEF5
border
#CAC9CF
text
#0B0A10
muted
#7C7C7F

Preview Lab

Preview with #4D508F

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

Preview Lab → · Contrast checker → · Palette generator →

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