#4D30A4#4D30A4

#4D30A4 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.8% C 0.175 H 287.8°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#4D30A4
RGBrgb(77, 48, 164)
HSLhsl(255, 55%, 42%)
HSVhsv(255, 71%, 64%)
CMYKcmyk(53%, 70.7%, 0%, 35.7%)
CIE-LABlab(30.33, 42.60, -58.13)
CIE-LCHlch(30.33, 72.06, 306.23°)
OKLaboklab(41.8% 0.0535 -0.167)
OKLCHoklch(41.8% 0.175 287.8)
XYZxyz(10.8164, 6.3715, 35.7746)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D30A4 #87A430
analogous
#304DA4 #4D30A4 #8730A4
triadic
#4D30A4 #A44D30 #30A44D
tetradic
#4D30A4 #A4304D #87A430 #30A487
square
#4D30A4 #A4304D #87A430 #30A487
split-complementary
#4D30A4 #A48730 #4DA430
monochromatic
#211445 #372275 #4D30A4 #6848C9 #8F77D7

Accessibility & contrast

On white

9.23
#4D30A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D30A4
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D30A4#FFFFFF#000000##FFFFFF
##4D30A41.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA7
Deuteranopia (green-blind)
#0044A2
Tritanopia (blue-blind)
#2B4E66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4d30a4;
/* rgb */ color: rgb(77, 48, 164);
/* oklch */ color: oklch(41.8% 0.175 287.8);
Tailwind
colors: {
  custom: {
    50: '#886bc0',
    500: '#4d30a4',
    950: '#000000',
  },
}
SCSS
$custom: #4d30a4;
$custom-light: #886bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d30a4",
  "rgb": {
    "r": 77,
    "g": 48,
    "b": 164
  },
  "hsl": {
    "h": 255,
    "s": 54.717,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41803,
    "c": 0.17534,
    "h": 287.8
  },
  "luminance": 0.06372
}

Semantic roles & 50–950 ramp

primary
#4D30A4
secondary
#ACBF70
accent
#DE4AB9
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4D30A4

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

Preview Lab → · Contrast checker → · Palette generator →

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