#4D2F8E#4D2F8E

#4D2F8E is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.8% C 0.149 H 292.9°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#4D2F8E
RGBrgb(77, 47, 142)
HSLhsl(259, 50%, 37%)
HSVhsv(259, 67%, 56%)
CMYKcmyk(45.8%, 66.9%, 0%, 44.3%)
CIE-LABlab(28.28, 36.67, -48.03)
CIE-LCHlch(28.28, 60.42, 307.36°)
OKLaboklab(39.76% 0.058 -0.1373)
OKLCHoklch(39.76% 0.149 292.9)
XYZxyz(8.9582, 5.5635, 26.1878)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2F8E #708E2F
analogous
#2F418E #4D2F8E #7D2F8E
triadic
#4D2F8E #8E4D2F #2F8E4D
tetradic
#4D2F8E #8E2F41 #708E2F #2F8E7D
square
#4D2F8E #8E2F41 #708E2F #2F8E7D
split-complementary
#4D2F8E #8E7D2F #418E2F
monochromatic
#1B1132 #342060 #4D2F8E #663EBC #896ACE

Accessibility & contrast

On white

9.94
#4D2F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4D2F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2F8E
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2F8E#FFFFFF#000000##FFFFFF
##4D2F8E1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#3A465A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d2f8e;
/* rgb */ color: rgb(77, 47, 142);
/* oklch */ color: oklch(39.8% 0.149 292.9);
Tailwind
colors: {
  custom: {
    50: '#8469b0',
    500: '#4d2f8e',
    950: '#000000',
  },
}
SCSS
$custom: #4d2f8e;
$custom-light: #8469b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2f8e",
  "rgb": {
    "r": 77,
    "g": 47,
    "b": 142
  },
  "hsl": {
    "h": 258.947,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39761,
    "c": 0.14905,
    "h": 292.9
  },
  "luminance": 0.05564
}

Semantic roles & 50–950 ramp

primary
#4D2F8E
secondary
#9BB564
accent
#DA4EAE
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D2F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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