#4D508C#4D508C

#4D508C is a mid, moderate blue. Relative luminance 0.092; OKLCH L 45.7% C 0.097 H 279.7°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#4D508C
RGBrgb(77, 80, 140)
HSLhsl(237, 29%, 43%)
HSVhsv(237, 45%, 55%)
CMYKcmyk(45%, 42.9%, 0%, 45.1%)
CIE-LABlab(36.38, 15.35, -33.80)
CIE-LCHlch(36.38, 37.12, 294.43°)
OKLaboklab(45.74% 0.0163 -0.0954)
OKLCHoklch(45.74% 0.097 279.7)
XYZxyz(10.6614, 9.2081, 26.0214)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D508C #8C894D
analogous
#4D6F8C #4D508C #6A4D8C
triadic
#4D508C #8C4D50 #508C4D
tetradic
#4D508C #8C4D6F #8C894D #4D8C6A
square
#4D508C #8C4D6F #8C894D #4D8C6A
split-complementary
#4D508C #8C6A4D #6F8C4D
monochromatic
#22233D #373965 #4D508C #696DAD #9193C2

Accessibility & contrast

On white

7.39
#4D508C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#4D508C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D508C
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D508C#FFFFFF#000000##FFFFFF
##4D508C1.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A588E
Deuteranopia (green-blind)
#36538B
Tritanopia (blue-blind)
#385C67
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4d508c;
/* rgb */ color: rgb(77, 80, 140);
/* oklch */ color: oklch(45.7% 0.097 279.7);
Tailwind
colors: {
  custom: {
    50: '#8281ae',
    500: '#4d508c',
    950: '#000000',
  },
}
SCSS
$custom: #4d508c;
$custom-light: #8281ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d508c",
  "rgb": {
    "r": 77,
    "g": 80,
    "b": 140
  },
  "hsl": {
    "h": 237.143,
    "s": 29.032,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45744,
    "c": 0.09683,
    "h": 279.7
  },
  "luminance": 0.09209
}

Semantic roles & 50–950 ramp

primary
#4D508C
secondary
#AFAD86
accent
#C162C5
background
#F8F7FA
surface
#EFEEF4
border
#CAC9CE
text
#0B0A10
muted
#7C7C7F

Preview Lab

Preview with #4D508C

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

Preview Lab → · Contrast checker → · Palette generator →

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