#4D2588#4D2588

#4D2588 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.8% C 0.155 H 296.8°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#4D2588
RGBrgb(77, 37, 136)
HSLhsl(264, 57%, 34%)
HSVhsv(264, 73%, 53%)
CMYKcmyk(43.4%, 72.8%, 0%, 46.7%)
CIE-LABlab(25.80, 40.45, -48.34)
CIE-LCHlch(25.80, 63.04, 309.92°)
OKLaboklab(37.83% 0.0697 -0.1382)
OKLCHoklch(37.83% 0.155 296.8)
XYZxyz(8.1649, 4.6783, 23.7606)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2588 #608825
analogous
#252F88 #4D2588 #7F2588
triadic
#4D2588 #884D25 #25884D
tetradic
#4D2588 #88252F #608825 #25887F
square
#4D2588 #88252F #608825 #25887F
split-complementary
#4D2588 #887F25 #2F8825
monochromatic
#170B28 #321858 #4D2588 #6832B8 #8856D1

Accessibility & contrast

On white

10.85
#4D2588 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4D2588 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2588
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2588#FFFFFF#000000##FFFFFF
##4D25881.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8B
Deuteranopia (green-blind)
#003C86
Tritanopia (blue-blind)
#3E3E54
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4d2588;
/* rgb */ color: rgb(77, 37, 136);
/* oklch */ color: oklch(37.8% 0.155 296.8);
Tailwind
colors: {
  custom: {
    50: '#8463ab',
    500: '#4d2588',
    950: '#000000',
  },
}
SCSS
$custom: #4d2588;
$custom-light: #8463ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2588",
  "rgb": {
    "r": 77,
    "g": 37,
    "b": 136
  },
  "hsl": {
    "h": 264.242,
    "s": 57.225,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37827,
    "c": 0.15479,
    "h": 296.8
  },
  "luminance": 0.04678
}

Semantic roles & 50–950 ramp

primary
#4D2588
secondary
#8EB653
accent
#E047A3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4D2588

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

Preview Lab → · Contrast checker → · Palette generator →

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