#4D3386#4D3386

#4D3386 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 39.8% C 0.133 H 293.9°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#4D3386
RGBrgb(77, 51, 134)
HSLhsl(259, 45%, 36%)
HSVhsv(259, 62%, 53%)
CMYKcmyk(42.5%, 61.9%, 0%, 47.5%)
CIE-LABlab(28.55, 31.95, -42.62)
CIE-LCHlch(28.55, 53.27, 306.86°)
OKLaboklab(39.77% 0.0539 -0.1214)
OKLCHoklch(39.77% 0.133 293.9)
XYZxyz(8.5463, 5.6665, 23.1931)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D3386 #6C8633
analogous
#334386 #4D3386 #773386
triadic
#4D3386 #864D33 #33864D
tetradic
#4D3386 #863343 #6C8633 #338677
square
#4D3386 #863343 #6C8633 #338677
split-complementary
#4D3386 #867733 #438633
monochromatic
#1A112D #34225A #4D3386 #6644B2 #896CC7

Accessibility & contrast

On white

9.84
#4D3386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4D3386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D3386
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D3386#FFFFFF#000000##FFFFFF
##4D33861.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004489
Deuteranopia (green-blind)
#054284
Tritanopia (blue-blind)
#3E4557
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d3386;
/* rgb */ color: rgb(77, 51, 134);
/* oklch */ color: oklch(39.8% 0.133 293.9);
Tailwind
colors: {
  custom: {
    50: '#836caa',
    500: '#4d3386',
    950: '#000000',
  },
}
SCSS
$custom: #4d3386;
$custom-light: #836caa;
$custom-dark: #000000;
JSON
{
  "hex": "#4d3386",
  "rgb": {
    "r": 77,
    "g": 51,
    "b": 134
  },
  "hsl": {
    "h": 258.795,
    "s": 44.865,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39765,
    "c": 0.13286,
    "h": 293.9
  },
  "luminance": 0.05667
}

Semantic roles & 50–950 ramp

primary
#4D3386
secondary
#98AF66
accent
#D553AC
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4D3386

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

Preview Lab → · Contrast checker → · Palette generator →

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