#4C31BD#4C31BD

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

Color values

HEX#4C31BD
RGBrgb(76, 49, 189)
HSLhsl(252, 59%, 47%)
HSVhsv(252, 74%, 74%)
CMYKcmyk(59.8%, 74.1%, 0%, 25.9%)
CIE-LABlab(32.71, 49.35, -69.13)
CIE-LCHlch(32.71, 84.94, 305.52°)
OKLaboklab(44.17% 0.0459 -0.1993)
OKLCHoklch(44.17% 0.204 283)
XYZxyz(13.2613, 7.4064, 48.8650)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C31BD #A2BD31
analogous
#315CBD #4C31BD #9231BD
triadic
#4C31BD #BD4C31 #31BD4C
tetradic
#4C31BD #BD315C #A2BD31 #31BD92
square
#4C31BD #BD315C #A2BD31 #31BD92
split-complementary
#4C31BD #BD9231 #5CBD31
monochromatic
#25185C #38248C #4C31BD #7058D4 #9988E0

Accessibility & contrast

On white

8.46
#4C31BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#4C31BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C31BD
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C31BD#FFFFFF#000000##FFFFFF
##4C31BD1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.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: #4c31bd;
/* rgb */ color: rgb(76, 49, 189);
/* oklch */ color: oklch(44.2% 0.204 283.0);
Tailwind
colors: {
  custom: {
    50: '#8b6cd2',
    500: '#4c31bd',
    950: '#000000',
  },
}
SCSS
$custom: #4c31bd;
$custom-light: #8b6cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c31bd",
  "rgb": {
    "r": 76,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 251.571,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.4417,
    "c": 0.20447,
    "h": 283
  },
  "luminance": 0.07407
}

Semantic roles & 50–950 ramp

primary
#4C31BD
secondary
#BCCA80
accent
#E246C4
background
#F9F6FD
surface
#F1ECFA
border
#CBC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4C31BD

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

Preview Lab → · Contrast checker → · Palette generator →

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