#4D2EA8#4D2EA8

#4D2EA8 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.182 H 287.3°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#4D2EA8
RGBrgb(77, 46, 168)
HSLhsl(255, 57%, 42%)
HSVhsv(255, 73%, 66%)
CMYKcmyk(54.2%, 72.6%, 0%, 34.1%)
CIE-LABlab(30.30, 44.86, -60.59)
CIE-LCHlch(30.30, 75.39, 306.51°)
OKLaboklab(41.89% 0.0544 -0.1742)
OKLCHoklch(41.89% 0.183 287.3)
XYZxyz(11.1034, 6.3584, 37.6804)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2EA8 #89A82E
analogous
#2E4CA8 #4D2EA8 #8A2EA8
triadic
#4D2EA8 #A84D2E #2EA84D
tetradic
#4D2EA8 #A82E4C #89A82E #2EA88A
square
#4D2EA8 #A82E4C #89A82E #2EA88A
split-complementary
#4D2EA8 #A88A2E #4CA82E
monochromatic
#211448 #372178 #4D2EA8 #6947CD #9077DA

Accessibility & contrast

On white

9.24
#4D2EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4D2EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2EA8
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2EA8#FFFFFF#000000##FFFFFF
##4D2EA81.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#0044A6
Tritanopia (blue-blind)
#284F68
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4d2ea8;
/* rgb */ color: rgb(77, 46, 168);
/* oklch */ color: oklch(41.9% 0.182 287.3);
Tailwind
colors: {
  custom: {
    50: '#886ac3',
    500: '#4d2ea8',
    950: '#000000',
  },
}
SCSS
$custom: #4d2ea8;
$custom-light: #886ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2ea8",
  "rgb": {
    "r": 77,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 255.246,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4189,
    "c": 0.1825,
    "h": 287.3
  },
  "luminance": 0.06359
}

Semantic roles & 50–950 ramp

primary
#4D2EA8
secondary
#ADC270
accent
#E048B9
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4D2EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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