#4D31AF#4D31AF

#4D31AF is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.9% C 0.188 H 285.6°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#4D31AF
RGBrgb(77, 49, 175)
HSLhsl(253, 56%, 44%)
HSVhsv(253, 72%, 69%)
CMYKcmyk(56%, 72%, 0%, 31.4%)
CIE-LABlab(31.51, 45.33, -62.81)
CIE-LCHlch(31.51, 77.45, 305.82°)
OKLaboklab(42.94% 0.0504 -0.1807)
OKLCHoklch(42.94% 0.188 285.6)
XYZxyz(11.8944, 6.8689, 41.2482)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D31AF #93AF31
analogous
#3154AF #4D31AF #8C31AF
triadic
#4D31AF #AF4D31 #31AF4D
tetradic
#4D31AF #AF3154 #93AF31 #31AF8C
square
#4D31AF #AF3154 #93AF31 #31AF8C
split-complementary
#4D31AF #AF8C31 #54AF31
monochromatic
#23164F #38247F #4D31AF #6B4FCE #947FDB

Accessibility & contrast

On white

8.85
#4D31AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4D31AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D31AF
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D31AF#FFFFFF#000000##FFFFFF
##4D31AF1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB3
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#20536D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4d31af;
/* rgb */ color: rgb(77, 49, 175);
/* oklch */ color: oklch(42.9% 0.188 285.6);
Tailwind
colors: {
  custom: {
    50: '#896cc8',
    500: '#4d31af',
    950: '#000000',
  },
}
SCSS
$custom: #4d31af;
$custom-light: #896cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#4d31af",
  "rgb": {
    "r": 77,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 253.333,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.42941,
    "c": 0.18761,
    "h": 285.6
  },
  "luminance": 0.0687
}

Semantic roles & 50–950 ramp

primary
#4D31AF
secondary
#B3C478
accent
#E048BE
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4D31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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