#4D31B8#4D31B8

#4D31B8 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.8% C 0.198 H 284.1°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#4D31B8
RGBrgb(77, 49, 184)
HSLhsl(252, 58%, 46%)
HSVhsv(252, 73%, 72%)
CMYKcmyk(58.2%, 73.4%, 0%, 27.8%)
CIE-LABlab(32.33, 48.00, -66.80)
CIE-LCHlch(32.33, 82.26, 305.70°)
OKLaboklab(43.78% 0.0484 -0.1924)
OKLCHoklch(43.78% 0.198 284.1)
XYZxyz(12.8080, 7.2343, 46.0596)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D31B8 #9CB831
analogous
#3159B8 #4D31B8 #9031B8
triadic
#4D31B8 #B84D31 #31B84D
tetradic
#4D31B8 #B83159 #9CB831 #31B890
square
#4D31B8 #B83159 #9CB831 #31B890
split-complementary
#4D31B8 #B89031 #59B831
monochromatic
#251757 #392488 #4D31B8 #6F55D2 #9785DE

Accessibility & contrast

On white

8.58
#4D31B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#4D31B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D31B8
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D31B8#FFFFFF#000000##FFFFFF
##4D31B81.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BC
Deuteranopia (green-blind)
#0048B5
Tritanopia (blue-blind)
#105672
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4d31b8;
/* rgb */ color: rgb(77, 49, 184);
/* oklch */ color: oklch(43.8% 0.198 284.1);
Tailwind
colors: {
  custom: {
    50: '#8b6cce',
    500: '#4d31b8',
    950: '#000000',
  },
}
SCSS
$custom: #4d31b8;
$custom-light: #8b6cce;
$custom-dark: #000000;
JSON
{
  "hex": "#4d31b8",
  "rgb": {
    "r": 77,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 252.444,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.43781,
    "c": 0.19841,
    "h": 284.1
  },
  "luminance": 0.07235
}

Semantic roles & 50–950 ramp

primary
#4D31B8
secondary
#B8C87D
accent
#E147C1
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4D31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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