#4D31C0#4D31C0

#4D31C0 is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.5% C 0.208 H 282.9°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#4D31C0
RGBrgb(77, 49, 192)
HSLhsl(252, 59%, 47%)
HSVhsv(252, 74%, 75%)
CMYKcmyk(59.9%, 74.5%, 0%, 24.7%)
CIE-LABlab(33.09, 50.37, -70.28)
CIE-LCHlch(33.09, 86.46, 305.63°)
OKLaboklab(44.54% 0.0466 -0.2026)
OKLCHoklch(44.54% 0.208 282.9)
XYZxyz(13.6704, 7.5793, 50.6015)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D31C0 #A4C031
analogous
#315DC0 #4D31C0 #9431C0
triadic
#4D31C0 #C04D31 #31C04D
tetradic
#4D31C0 #C0315D #A4C031 #31C094
square
#4D31C0 #C0315D #A4C031 #31C094
split-complementary
#4D31C0 #C09431 #5DC031
monochromatic
#26185E #39258F #4D31C0 #7259D5 #9B8AE1

Accessibility & contrast

On white

8.35
#4D31C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#4D31C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D31C0
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D31C0#FFFFFF#000000##FFFFFF
##4D31C01.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C4
Deuteranopia (green-blind)
#0049BD
Tritanopia (blue-blind)
#005976
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4d31c0;
/* rgb */ color: rgb(77, 49, 192);
/* oklch */ color: oklch(44.5% 0.208 282.9);
Tailwind
colors: {
  custom: {
    50: '#8c6dd4',
    500: '#4d31c0',
    950: '#000000',
  },
}
SCSS
$custom: #4d31c0;
$custom-light: #8c6dd4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d31c0",
  "rgb": {
    "r": 77,
    "g": 49,
    "b": 192
  },
  "hsl": {
    "h": 251.748,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.44544,
    "c": 0.20786,
    "h": 282.9
  },
  "luminance": 0.0758
}

Semantic roles & 50–950 ramp

primary
#4D31C0
secondary
#BDCB82
accent
#E345C4
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4D31C0

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

Preview Lab → · Contrast checker → · Palette generator →

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