#4D508D#4D508D

#4D508D is a mid, moderate blue. Relative luminance 0.092; OKLCH L 45.8% C 0.098 H 279.6°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#4D508D
RGBrgb(77, 80, 141)
HSLhsl(237, 29%, 43%)
HSVhsv(237, 45%, 55%)
CMYKcmyk(45.4%, 43.3%, 0%, 44.7%)
CIE-LABlab(36.44, 15.67, -34.32)
CIE-LCHlch(36.44, 37.73, 294.54°)
OKLaboklab(45.81% 0.0165 -0.097)
OKLCHoklch(45.81% 0.098 279.6)
XYZxyz(10.7355, 9.2377, 26.4115)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D508D #8D8A4D
analogous
#4D708D #4D508D #6A4D8D
triadic
#4D508D #8D4D50 #508D4D
tetradic
#4D508D #8D4D70 #8D8A4D #4D8D6A
square
#4D508D #8D4D70 #8D8A4D #4D8D6A
split-complementary
#4D508D #8D6A4D #708D4D
monochromatic
#22233E #373A65 #4D508D #6A6DAD #9194C3

Accessibility & contrast

On white

7.37
#4D508D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#4D508D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D508D
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D508D#FFFFFF#000000##FFFFFF
##4D508D1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39588F
Deuteranopia (green-blind)
#35538C
Tritanopia (blue-blind)
#385C67
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4d508d;
/* rgb */ color: rgb(77, 80, 141);
/* oklch */ color: oklch(45.8% 0.098 279.6);
Tailwind
colors: {
  custom: {
    50: '#8281ae',
    500: '#4d508d',
    950: '#000000',
  },
}
SCSS
$custom: #4d508d;
$custom-light: #8281ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d508d",
  "rgb": {
    "r": 77,
    "g": 80,
    "b": 141
  },
  "hsl": {
    "h": 237.188,
    "s": 29.358,
    "l": 42.745
  },
  "oklch": {
    "l": 0.45805,
    "c": 0.09836,
    "h": 279.6
  },
  "luminance": 0.09238
}

Semantic roles & 50–950 ramp

primary
#4D508D
secondary
#AFAE86
accent
#C162C6
background
#F8F7FA
surface
#EFEEF4
border
#CAC9CE
text
#0B0A10
muted
#7C7C7F

Preview Lab

Preview with #4D508D

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

Preview Lab → · Contrast checker → · Palette generator →

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