#4D30AB#4D30AB

#4D30AB is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.184 H 286.5°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#4D30AB
RGBrgb(77, 48, 171)
HSLhsl(254, 56%, 43%)
HSVhsv(254, 72%, 67%)
CMYKcmyk(55%, 71.9%, 0%, 32.9%)
CIE-LABlab(30.95, 44.67, -61.32)
CIE-LCHlch(30.95, 75.87, 306.07°)
OKLaboklab(42.44% 0.0521 -0.1764)
OKLCHoklch(42.44% 0.184 286.5)
XYZxyz(11.4660, 6.6313, 39.1960)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D30AB #8EAB30
analogous
#3051AB #4D30AB #8A30AB
triadic
#4D30AB #AB4D30 #30AB4D
tetradic
#4D30AB #AB3051 #8EAB30 #30AB8A
square
#4D30AB #AB3051 #8EAB30 #30AB8A
split-complementary
#4D30AB #AB8A30 #51AB30
monochromatic
#22154B #37237B #4D30AB #6A4CCD #927BDA

Accessibility & contrast

On white

9.03
#4D30AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#4D30AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D30AB
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D30AB#FFFFFF#000000##FFFFFF
##4D30AB1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#0045A9
Tritanopia (blue-blind)
#25516A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4d30ab;
/* rgb */ color: rgb(77, 48, 171);
/* oklch */ color: oklch(42.4% 0.184 286.5);
Tailwind
colors: {
  custom: {
    50: '#896bc5',
    500: '#4d30ab',
    950: '#000000',
  },
}
SCSS
$custom: #4d30ab;
$custom-light: #896bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d30ab",
  "rgb": {
    "r": 77,
    "g": 48,
    "b": 171
  },
  "hsl": {
    "h": 254.146,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42437,
    "c": 0.18389,
    "h": 286.5
  },
  "luminance": 0.06632
}

Semantic roles & 50–950 ramp

primary
#4D30AB
secondary
#B0C374
accent
#DF48BC
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4D30AB

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

Preview Lab → · Contrast checker → · Palette generator →

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