#4D31BD#4D31BD

#4D31BD is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.3% C 0.204 H 283.4°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#4D31BD
RGBrgb(77, 49, 189)
HSLhsl(252, 59%, 47%)
HSVhsv(252, 74%, 74%)
CMYKcmyk(59.3%, 74.1%, 0%, 25.9%)
CIE-LABlab(32.81, 49.48, -68.98)
CIE-LCHlch(32.81, 84.89, 305.65°)
OKLaboklab(44.26% 0.0473 -0.1988)
OKLCHoklch(44.26% 0.204 283.4)
XYZxyz(13.3414, 7.4477, 48.8688)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D31BD #A1BD31
analogous
#315BBD #4D31BD #9331BD
triadic
#4D31BD #BD4D31 #31BD4D
tetradic
#4D31BD #BD315B #A1BD31 #31BD93
square
#4D31BD #BD315B #A1BD31 #31BD93
split-complementary
#4D31BD #BD9331 #5BBD31
monochromatic
#25185C #39248C #4D31BD #7058D4 #9A88E0

Accessibility & contrast

On white

8.43
#4D31BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#4D31BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D31BD
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D31BD#FFFFFF#000000##FFFFFF
##4D31BD1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C1
Deuteranopia (green-blind)
#0048BA
Tritanopia (blue-blind)
#005874
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4d31bd;
/* rgb */ color: rgb(77, 49, 189);
/* oklch */ color: oklch(44.3% 0.204 283.4);
Tailwind
colors: {
  custom: {
    50: '#8c6cd2',
    500: '#4d31bd',
    950: '#000000',
  },
}
SCSS
$custom: #4d31bd;
$custom-light: #8c6cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d31bd",
  "rgb": {
    "r": 77,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 252,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44256,
    "c": 0.20434,
    "h": 283.4
  },
  "luminance": 0.07449
}

Semantic roles & 50–950 ramp

primary
#4D31BD
secondary
#BBCA80
accent
#E246C3
background
#F9F6FD
surface
#F1ECFA
border
#CBC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4D31BD

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

Preview Lab → · Contrast checker → · Palette generator →

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