#4C31B8#4C31B8

#4C31B8 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.199 H 283.7°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#4C31B8
RGBrgb(76, 49, 184)
HSLhsl(252, 58%, 46%)
HSVhsv(252, 73%, 72%)
CMYKcmyk(58.7%, 73.4%, 0%, 27.8%)
CIE-LABlab(32.24, 47.86, -66.95)
CIE-LCHlch(32.24, 82.30, 305.56°)
OKLaboklab(43.69% 0.047 -0.1929)
OKLCHoklch(43.69% 0.199 283.7)
XYZxyz(12.7279, 7.1930, 46.0558)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C31B8 #9DB831
analogous
#3159B8 #4C31B8 #8F31B8
triadic
#4C31B8 #B84C31 #31B84C
tetradic
#4C31B8 #B83159 #9DB831 #31B88F
square
#4C31B8 #B83159 #9DB831 #31B88F
split-complementary
#4C31B8 #B88F31 #59B831
monochromatic
#241757 #382488 #4C31B8 #6E55D2 #9785DE

Accessibility & contrast

On white

8.61
#4C31B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#4C31B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C31B8
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C31B8#FFFFFF#000000##FFFFFF
##4C31B81.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c31b8;
/* rgb */ color: rgb(76, 49, 184);
/* oklch */ color: oklch(43.7% 0.199 283.7);
Tailwind
colors: {
  custom: {
    50: '#8a6cce',
    500: '#4c31b8',
    950: '#000000',
  },
}
SCSS
$custom: #4c31b8;
$custom-light: #8a6cce;
$custom-dark: #000000;
JSON
{
  "hex": "#4c31b8",
  "rgb": {
    "r": 76,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 252,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.43693,
    "c": 0.19853,
    "h": 283.7
  },
  "luminance": 0.07194
}

Semantic roles & 50–950 ramp

primary
#4C31B8
secondary
#B9C87D
accent
#E147C2
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4C31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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