#4D2D8B#4D2D8B

#4D2D8B is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.2% C 0.148 H 294.2°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#4D2D8B
RGBrgb(77, 45, 139)
HSLhsl(260, 51%, 36%)
HSVhsv(260, 68%, 55%)
CMYKcmyk(44.6%, 67.6%, 0%, 45.5%)
CIE-LABlab(27.62, 36.94, -47.24)
CIE-LCHlch(27.62, 59.97, 308.02°)
OKLaboklab(39.21% 0.0606 -0.135)
OKLCHoklch(39.21% 0.148 294.2)
XYZxyz(8.6579, 5.3184, 24.9915)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2D8B #6B8B2D
analogous
#2D3C8B #4D2D8B #7C2D8B
triadic
#4D2D8B #8B4D2D #2D8B4D
tetradic
#4D2D8B #8B2D3C #6B8B2D #2D8B7C
square
#4D2D8B #8B2D3C #6B8B2D #2D8B7C
split-complementary
#4D2D8B #8B7C2D #3C8B2D
monochromatic
#1A0F2F #331E5D #4D2D8B #673CB9 #8965CD

Accessibility & contrast

On white

10.18
#4D2D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4D2D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2D8B
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2D8B#FFFFFF#000000##FFFFFF
##4D2D8B1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#3C4358
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4d2d8b;
/* rgb */ color: rgb(77, 45, 139);
/* oklch */ color: oklch(39.2% 0.148 294.2);
Tailwind
colors: {
  custom: {
    50: '#8468ae',
    500: '#4d2d8b',
    950: '#000000',
  },
}
SCSS
$custom: #4d2d8b;
$custom-light: #8468ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2d8b",
  "rgb": {
    "r": 77,
    "g": 45,
    "b": 139
  },
  "hsl": {
    "h": 260.426,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.3921,
    "c": 0.14797,
    "h": 294.2
  },
  "luminance": 0.05319
}

Semantic roles & 50–950 ramp

primary
#4D2D8B
secondary
#97B460
accent
#DB4DAA
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D2D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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