#4A31BA#4A31BA

#4A31BA is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 43.7% C 0.201 H 282.5°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#4A31BA
RGBrgb(74, 49, 186)
HSLhsl(251, 58%, 46%)
HSVhsv(251, 74%, 73%)
CMYKcmyk(60.2%, 73.7%, 0%, 27.1%)
CIE-LABlab(32.25, 48.19, -68.13)
CIE-LCHlch(32.25, 83.45, 305.27°)
OKLaboklab(43.71% 0.0437 -0.1964)
OKLCHoklch(43.71% 0.201 282.5)
XYZxyz(12.7825, 7.1968, 47.1604)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A31BA #A1BA31
analogous
#315CBA #4A31BA #8E31BA
triadic
#4A31BA #BA4A31 #31BA4A
tetradic
#4A31BA #BA315C #A1BA31 #31BA8E
square
#4A31BA #BA315C #A1BA31 #31BA8E
split-complementary
#4A31BA #BA8E31 #5CBA31
monochromatic
#231759 #37248A #4A31BA #6D56D2 #9686DF

Accessibility & contrast

On white

8.61
#4A31BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#4A31BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A31BA
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A31BA#FFFFFF#000000##FFFFFF
##4A31BA1.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BE
Deuteranopia (green-blind)
#0047B7
Tritanopia (blue-blind)
#005773
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4a31ba;
/* rgb */ color: rgb(74, 49, 186);
/* oklch */ color: oklch(43.7% 0.201 282.5);
Tailwind
colors: {
  custom: {
    50: '#8a6cd0',
    500: '#4a31ba',
    950: '#000000',
  },
}
SCSS
$custom: #4a31ba;
$custom-light: #8a6cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a31ba",
  "rgb": {
    "r": 74,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 250.949,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.43712,
    "c": 0.20119,
    "h": 282.5
  },
  "luminance": 0.07198
}

Semantic roles & 50–950 ramp

primary
#4A31BA
secondary
#BBC97E
accent
#E246C5
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4A31BA

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

Preview Lab → · Contrast checker → · Palette generator →

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