#4D30A5#4D30A5

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

Color values

HEX#4D30A5
RGBrgb(77, 48, 165)
HSLhsl(255, 55%, 42%)
HSVhsv(255, 71%, 65%)
CMYKcmyk(53.3%, 70.9%, 0%, 35.3%)
CIE-LABlab(30.42, 42.89, -58.59)
CIE-LCHlch(30.42, 72.61, 306.21°)
OKLaboklab(41.89% 0.0533 -0.1683)
OKLCHoklch(41.89% 0.177 287.6)
XYZxyz(10.9070, 6.4078, 36.2521)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D30A5 #88A530
analogous
#304DA5 #4D30A5 #8830A5
triadic
#4D30A5 #A54D30 #30A54D
tetradic
#4D30A5 #A5304D #88A530 #30A588
square
#4D30A5 #A5304D #88A530 #30A588
split-complementary
#4D30A5 #A58830 #4DA530
monochromatic
#211446 #372276 #4D30A5 #6848CA #9078D8

Accessibility & contrast

On white

9.20
#4D30A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4D30A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D30A5
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D30A5#FFFFFF#000000##FFFFFF
##4D30A51.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA8
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#2A4F67
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4d30a5;
/* rgb */ color: rgb(77, 48, 165);
/* oklch */ color: oklch(41.9% 0.177 287.6);
Tailwind
colors: {
  custom: {
    50: '#886bc1',
    500: '#4d30a5',
    950: '#000000',
  },
}
SCSS
$custom: #4d30a5;
$custom-light: #886bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d30a5",
  "rgb": {
    "r": 77,
    "g": 48,
    "b": 165
  },
  "hsl": {
    "h": 254.872,
    "s": 54.93,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41893,
    "c": 0.17657,
    "h": 287.6
  },
  "luminance": 0.06408
}

Semantic roles & 50–950 ramp

primary
#4D30A5
secondary
#ACC071
accent
#DE4AB9
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4D30A5

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

Preview Lab → · Contrast checker → · Palette generator →

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