#4C31B5#4C31B5

#4C31B5 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.4% C 0.195 H 284.2°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#4C31B5
RGBrgb(76, 49, 181)
HSLhsl(252, 57%, 45%)
HSVhsv(252, 73%, 71%)
CMYKcmyk(58%, 72.9%, 0%, 29%)
CIE-LABlab(31.96, 46.97, -65.64)
CIE-LCHlch(31.96, 80.71, 305.59°)
OKLaboklab(43.41% 0.0477 -0.189)
OKLCHoklch(43.41% 0.195 284.2)
XYZxyz(12.4167, 7.0685, 44.4172)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C31B5 #9AB531
analogous
#3158B5 #4C31B5 #8E31B5
triadic
#4C31B5 #B54C31 #31B54C
tetradic
#4C31B5 #B53158 #9AB531 #31B58E
square
#4C31B5 #B53158 #9AB531 #31B58E
split-complementary
#4C31B5 #B58E31 #58B531
monochromatic
#241755 #382485 #4C31B5 #6C53D0 #9583DD

Accessibility & contrast

On white

8.70
#4C31B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#4C31B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C31B5
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C31B5#FFFFFF#000000##FFFFFF
##4C31B51.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB9
Deuteranopia (green-blind)
#0047B3
Tritanopia (blue-blind)
#115570
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4c31b5;
/* rgb */ color: rgb(76, 49, 181);
/* oklch */ color: oklch(43.4% 0.195 284.2);
Tailwind
colors: {
  custom: {
    50: '#8a6ccc',
    500: '#4c31b5',
    950: '#000000',
  },
}
SCSS
$custom: #4c31b5;
$custom-light: #8a6ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c31b5",
  "rgb": {
    "r": 76,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 252.273,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4341,
    "c": 0.19495,
    "h": 284.2
  },
  "luminance": 0.07069
}

Semantic roles & 50–950 ramp

primary
#4C31B5
secondary
#B7C77B
accent
#E147C1
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4C31B5

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

Preview Lab → · Contrast checker → · Palette generator →

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