#4D31BB#4D31BB

#4D31BB is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.1% C 0.202 H 283.7°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#4D31BB
RGBrgb(77, 49, 187)
HSLhsl(252, 58%, 46%)
HSVhsv(252, 74%, 73%)
CMYKcmyk(58.8%, 73.8%, 0%, 26.7%)
CIE-LABlab(32.62, 48.89, -68.11)
CIE-LCHlch(32.62, 83.84, 305.67°)
OKLaboklab(44.07% 0.0478 -0.1962)
OKLCHoklch(44.07% 0.202 283.7)
XYZxyz(13.1258, 7.3614, 47.7333)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D31BB #9FBB31
analogous
#315ABB #4D31BB #9231BB
triadic
#4D31BB #BB4D31 #31BB4D
tetradic
#4D31BB #BB315A #9FBB31 #31BB92
square
#4D31BB #BB315A #9FBB31 #31BB92
split-complementary
#4D31BB #BB9231 #5ABB31
monochromatic
#25185A #39248B #4D31BB #7056D3 #9987E0

Accessibility & contrast

On white

8.49
#4D31BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#4D31BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D31BB
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D31BB#FFFFFF#000000##FFFFFF
##4D31BB1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BF
Deuteranopia (green-blind)
#0048B8
Tritanopia (blue-blind)
#075773
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4d31bb;
/* rgb */ color: rgb(77, 49, 187);
/* oklch */ color: oklch(44.1% 0.202 283.7);
Tailwind
colors: {
  custom: {
    50: '#8b6cd1',
    500: '#4d31bb',
    950: '#000000',
  },
}
SCSS
$custom: #4d31bb;
$custom-light: #8b6cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d31bb",
  "rgb": {
    "r": 77,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 252.174,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44065,
    "c": 0.20198,
    "h": 283.7
  },
  "luminance": 0.07362
}

Semantic roles & 50–950 ramp

primary
#4D31BB
secondary
#BAC97F
accent
#E246C2
background
#F9F6FD
surface
#F1ECFA
border
#CBC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4D31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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