#4A31BB#4A31BB

#4A31BB is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 43.8% C 0.202 H 282.4°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#4A31BB
RGBrgb(74, 49, 187)
HSLhsl(251, 58%, 46%)
HSVhsv(251, 74%, 73%)
CMYKcmyk(60.4%, 73.8%, 0%, 26.7%)
CIE-LABlab(32.35, 48.49, -68.57)
CIE-LCHlch(32.35, 83.98, 305.27°)
OKLaboklab(43.81% 0.0435 -0.1977)
OKLCHoklch(43.81% 0.202 282.4)
XYZxyz(12.8892, 7.2394, 47.7222)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A31BB #A2BB31
analogous
#315DBB #4A31BB #8F31BB
triadic
#4A31BB #BB4A31 #31BB4A
tetradic
#4A31BB #BB315D #A2BB31 #31BB8F
square
#4A31BB #BB315D #A2BB31 #31BB8F
split-complementary
#4A31BB #BB8F31 #5DBB31
monochromatic
#24185A #37248B #4A31BB #6D56D3 #9787E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4A31BB#FFFFFF#000000##FFFFFF
##4A31BB1.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)
#0051BF
Deuteranopia (green-blind)
#0047B8
Tritanopia (blue-blind)
#005873
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4a31bb;
/* rgb */ color: rgb(74, 49, 187);
/* oklch */ color: oklch(43.8% 0.202 282.4);
Tailwind
colors: {
  custom: {
    50: '#8a6cd1',
    500: '#4a31bb',
    950: '#000000',
  },
}
SCSS
$custom: #4a31bb;
$custom-light: #8a6cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a31bb",
  "rgb": {
    "r": 74,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 250.87,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.43808,
    "c": 0.20238,
    "h": 282.4
  },
  "luminance": 0.0724
}

Semantic roles & 50–950 ramp

primary
#4A31BB
secondary
#BCC97F
accent
#E246C6
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4A31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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