#4C31BB#4C31BB

#4C31BB is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.0% C 0.202 H 283.2°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#4C31BB
RGBrgb(76, 49, 187)
HSLhsl(252, 58%, 46%)
HSVhsv(252, 74%, 73%)
CMYKcmyk(59.4%, 73.8%, 0%, 26.7%)
CIE-LABlab(32.52, 48.76, -68.27)
CIE-LCHlch(32.52, 83.89, 305.54°)
OKLaboklab(43.98% 0.0463 -0.1967)
OKLCHoklch(43.98% 0.202 283.2)
XYZxyz(13.0457, 7.3201, 47.7296)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C31BB #A0BB31
analogous
#315BBB #4C31BB #9131BB
triadic
#4C31BB #BB4C31 #31BB4C
tetradic
#4C31BB #BB315B #A0BB31 #31BB91
square
#4C31BB #BB315B #A0BB31 #31BB91
split-complementary
#4C31BB #BB9131 #5BBB31
monochromatic
#25185A #38248B #4C31BB #6F56D3 #9887E0

Accessibility & contrast

On white

8.52
#4C31BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C31BB
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C31BB#FFFFFF#000000##FFFFFF
##4C31BB1.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BF
Deuteranopia (green-blind)
#0048B8
Tritanopia (blue-blind)
#005773
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4c31bb;
/* rgb */ color: rgb(76, 49, 187);
/* oklch */ color: oklch(44.0% 0.202 283.2);
Tailwind
colors: {
  custom: {
    50: '#8b6cd1',
    500: '#4c31bb',
    950: '#000000',
  },
}
SCSS
$custom: #4c31bb;
$custom-light: #8b6cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c31bb",
  "rgb": {
    "r": 76,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 251.739,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.43979,
    "c": 0.2021,
    "h": 283.2
  },
  "luminance": 0.07321
}

Semantic roles & 50–950 ramp

primary
#4C31BB
secondary
#BBC97F
accent
#E246C3
background
#F9F6FD
surface
#F1ECFA
border
#CBC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4C31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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