#4D418D#4D418D

#4D418D is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.8% C 0.121 H 287.4°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#4D418D
RGBrgb(77, 65, 141)
HSLhsl(249, 37%, 40%)
HSVhsv(249, 54%, 55%)
CMYKcmyk(45.4%, 53.9%, 0%, 44.7%)
CIE-LABlab(32.44, 25.33, -40.70)
CIE-LCHlch(32.44, 47.94, 301.90°)
OKLaboklab(42.79% 0.0362 -0.1157)
OKLCHoklch(42.79% 0.121 287.4)
XYZxyz(9.7572, 7.2811, 26.0854)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D418D #818D41
analogous
#415B8D #4D418D #73418D
triadic
#4D418D #8D4D41 #418D4D
tetradic
#4D418D #8D415B #818D41 #418D73
square
#4D418D #8D415B #818D41 #418D73
split-complementary
#4D418D #8D7341 #5B8D41
monochromatic
#1F1A39 #362E63 #4D418D #6759B2 #8D83C6

Accessibility & contrast

On white

8.55
#4D418D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#4D418D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D418D
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D418D#FFFFFF#000000##FFFFFF
##4D418D1.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4E90
Deuteranopia (green-blind)
#1D4A8B
Tritanopia (blue-blind)
#395160
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4d418d;
/* rgb */ color: rgb(77, 65, 141);
/* oklch */ color: oklch(42.8% 0.121 287.4);
Tailwind
colors: {
  custom: {
    50: '#8376af',
    500: '#4d418d',
    950: '#000000',
  },
}
SCSS
$custom: #4d418d;
$custom-light: #8376af;
$custom-dark: #000000;
JSON
{
  "hex": "#4d418d",
  "rgb": {
    "r": 77,
    "g": 65,
    "b": 141
  },
  "hsl": {
    "h": 249.474,
    "s": 36.893,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42788,
    "c": 0.12128,
    "h": 287.4
  },
  "luminance": 0.07281
}

Semantic roles & 50–950 ramp

primary
#4D418D
secondary
#A8B079
accent
#CD5BBB
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #4D418D

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

Preview Lab → · Contrast checker → · Palette generator →

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