#4C31B9#4C31B9

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

Color values

HEX#4C31B9
RGBrgb(76, 49, 185)
HSLhsl(252, 58%, 46%)
HSVhsv(252, 74%, 73%)
CMYKcmyk(58.9%, 73.5%, 0%, 27.5%)
CIE-LABlab(32.34, 48.16, -67.39)
CIE-LCHlch(32.34, 82.83, 305.55°)
OKLaboklab(43.79% 0.0468 -0.1942)
OKLCHoklch(43.79% 0.2 283.5)
XYZxyz(12.8331, 7.2351, 46.6098)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C31B9 #9EB931
analogous
#315AB9 #4C31B9 #9031B9
triadic
#4C31B9 #B94C31 #31B94C
tetradic
#4C31B9 #B9315A #9EB931 #31B990
square
#4C31B9 #B9315A #9EB931 #31B990
split-complementary
#4C31B9 #B99031 #5AB931
monochromatic
#241758 #382489 #4C31B9 #6E55D2 #9786DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C31B9#FFFFFF#000000##FFFFFF
##4C31B91.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)
#0050BD
Deuteranopia (green-blind)
#0047B6
Tritanopia (blue-blind)
#055772
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4c31b9;
/* rgb */ color: rgb(76, 49, 185);
/* oklch */ color: oklch(43.8% 0.200 283.5);
Tailwind
colors: {
  custom: {
    50: '#8a6ccf',
    500: '#4c31b9',
    950: '#000000',
  },
}
SCSS
$custom: #4c31b9;
$custom-light: #8a6ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c31b9",
  "rgb": {
    "r": 76,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 251.912,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.43788,
    "c": 0.19972,
    "h": 283.5
  },
  "luminance": 0.07236
}

Semantic roles & 50–950 ramp

primary
#4C31B9
secondary
#B9C87D
accent
#E146C3
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4C31B9

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

Preview Lab → · Contrast checker → · Palette generator →

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