#4C31BA#4C31BA

#4C31BA is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 43.9% C 0.201 H 283.4°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#4C31BA
RGBrgb(76, 49, 186)
HSLhsl(252, 58%, 46%)
HSVhsv(252, 74%, 73%)
CMYKcmyk(59.1%, 73.7%, 0%, 27.1%)
CIE-LABlab(32.43, 48.46, -67.83)
CIE-LCHlch(32.43, 83.36, 305.54°)
OKLaboklab(43.88% 0.0465 -0.1955)
OKLCHoklch(43.88% 0.201 283.4)
XYZxyz(12.9390, 7.2774, 47.1677)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C31BA #9FBA31
analogous
#315ABA #4C31BA #9031BA
triadic
#4C31BA #BA4C31 #31BA4C
tetradic
#4C31BA #BA315A #9FBA31 #31BA90
square
#4C31BA #BA315A #9FBA31 #31BA90
split-complementary
#4C31BA #BA9031 #5ABA31
monochromatic
#241759 #38248A #4C31BA #6E56D2 #9886DF

Accessibility & contrast

On white

8.55
#4C31BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#4C31BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C31BA
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C31BA#FFFFFF#000000##FFFFFF
##4C31BA1.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BE
Deuteranopia (green-blind)
#0048B7
Tritanopia (blue-blind)
#025773
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4c31ba;
/* rgb */ color: rgb(76, 49, 186);
/* oklch */ color: oklch(43.9% 0.201 283.4);
Tailwind
colors: {
  custom: {
    50: '#8b6cd0',
    500: '#4c31ba',
    950: '#000000',
  },
}
SCSS
$custom: #4c31ba;
$custom-light: #8b6cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c31ba",
  "rgb": {
    "r": 76,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 251.825,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.43883,
    "c": 0.20091,
    "h": 283.4
  },
  "luminance": 0.07278
}

Semantic roles & 50–950 ramp

primary
#4C31BA
secondary
#BAC97E
accent
#E246C3
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4C31BA

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

Preview Lab → · Contrast checker → · Palette generator →

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