#4A31BD#4A31BD

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

Color values

HEX#4A31BD
RGBrgb(74, 49, 189)
HSLhsl(251, 59%, 47%)
HSVhsv(251, 74%, 74%)
CMYKcmyk(60.8%, 74.1%, 0%, 25.9%)
CIE-LABlab(32.54, 49.09, -69.43)
CIE-LCHlch(32.54, 85.03, 305.26°)
OKLaboklab(44% 0.043 -0.2002)
OKLCHoklch(44% 0.205 282.1)
XYZxyz(13.1048, 7.3257, 48.8577)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A31BD #A4BD31
analogous
#315EBD #4A31BD #9031BD
triadic
#4A31BD #BD4A31 #31BD4A
tetradic
#4A31BD #BD315E #A4BD31 #31BD90
square
#4A31BD #BD315E #A4BD31 #31BD90
split-complementary
#4A31BD #BD9031 #5EBD31
monochromatic
#24185C #37248C #4A31BD #6E58D4 #9888E0

Accessibility & contrast

On white

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

On black

2.47
#4A31BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4A31BD#FFFFFF#000000##FFFFFF
##4A31BD1.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C1
Deuteranopia (green-blind)
#0048BA
Tritanopia (blue-blind)
#005874
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4a31bd;
/* rgb */ color: rgb(74, 49, 189);
/* oklch */ color: oklch(44.0% 0.205 282.1);
Tailwind
colors: {
  custom: {
    50: '#8a6cd2',
    500: '#4a31bd',
    950: '#000000',
  },
}
SCSS
$custom: #4a31bd;
$custom-light: #8a6cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#4a31bd",
  "rgb": {
    "r": 74,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 250.714,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44001,
    "c": 0.20476,
    "h": 282.1
  },
  "luminance": 0.07327
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4A31BD

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

Preview Lab → · Contrast checker → · Palette generator →

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