#4D2D88#4D2D88

#4D2D88 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.0% C 0.144 H 295.0°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#4D2D88
RGBrgb(77, 45, 136)
HSLhsl(261, 50%, 35%)
HSVhsv(261, 67%, 53%)
CMYKcmyk(43.4%, 66.9%, 0%, 46.7%)
CIE-LABlab(27.39, 36.08, -45.76)
CIE-LCHlch(27.39, 58.27, 308.25°)
OKLaboklab(38.96% 0.0609 -0.1307)
OKLCHoklch(38.96% 0.144 295)
XYZxyz(8.4417, 5.2319, 23.8529)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2D88 #68882D
analogous
#2D3A88 #4D2D88 #7A2D88
triadic
#4D2D88 #884D2D #2D884D
tetradic
#4D2D88 #882D3A #68882D #2D887A
square
#4D2D88 #882D3A #68882D #2D887A
split-complementary
#4D2D88 #887A2D #3A882D
monochromatic
#190F2C #331E5A #4D2D88 #673CB6 #8864CC

Accessibility & contrast

On white

10.26
#4D2D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4D2D88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2D88
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2D88#FFFFFF#000000##FFFFFF
##4D2D881.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418B
Deuteranopia (green-blind)
#003F86
Tritanopia (blue-blind)
#3D4256
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4d2d88;
/* rgb */ color: rgb(77, 45, 136);
/* oklch */ color: oklch(39.0% 0.144 295.0);
Tailwind
colors: {
  custom: {
    50: '#8468ab',
    500: '#4d2d88',
    950: '#000000',
  },
}
SCSS
$custom: #4d2d88;
$custom-light: #8468ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2d88",
  "rgb": {
    "r": 77,
    "g": 45,
    "b": 136
  },
  "hsl": {
    "h": 261.099,
    "s": 50.276,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38964,
    "c": 0.14417,
    "h": 295
  },
  "luminance": 0.05232
}

Semantic roles & 50–950 ramp

primary
#4D2D88
secondary
#95B25F
accent
#DA4EA9
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D2D88

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

Preview Lab → · Contrast checker → · Palette generator →

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