#4A31BC#4A31BC

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

Color values

HEX#4A31BC
RGBrgb(74, 49, 188)
HSLhsl(251, 59%, 46%)
HSVhsv(251, 74%, 74%)
CMYKcmyk(60.6%, 73.9%, 0%, 26.3%)
CIE-LABlab(32.44, 48.79, -69.00)
CIE-LCHlch(32.44, 84.51, 305.27°)
OKLaboklab(43.91% 0.0432 -0.1989)
OKLCHoklch(43.91% 0.204 282.3)
XYZxyz(12.9966, 7.2824, 48.2880)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A31BC #A3BC31
analogous
#315EBC #4A31BC #9031BC
triadic
#4A31BC #BC4A31 #31BC4A
tetradic
#4A31BC #BC315E #A3BC31 #31BC90
square
#4A31BC #BC315E #A3BC31 #31BC90
split-complementary
#4A31BC #BC9031 #5EBC31
monochromatic
#24185B #37248B #4A31BC #6D57D3 #9788E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4A31BC#FFFFFF#000000##FFFFFF
##4A31BC1.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)
#0051C0
Deuteranopia (green-blind)
#0047B9
Tritanopia (blue-blind)
#005874
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4a31bc;
/* rgb */ color: rgb(74, 49, 188);
/* oklch */ color: oklch(43.9% 0.204 282.3);
Tailwind
colors: {
  custom: {
    50: '#8a6cd1',
    500: '#4a31bc',
    950: '#000000',
  },
}
SCSS
$custom: #4a31bc;
$custom-light: #8a6cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a31bc",
  "rgb": {
    "r": 74,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 250.791,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.43905,
    "c": 0.20357,
    "h": 282.3
  },
  "luminance": 0.07283
}

Semantic roles & 50–950 ramp

primary
#4A31BC
secondary
#BCCA7F
accent
#E246C6
background
#F9F6FD
surface
#F1ECFA
border
#CBC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4A31BC

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

Preview Lab → · Contrast checker → · Palette generator →

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