#4A31B2#4A31B2

#4A31B2 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.0% C 0.192 H 283.7°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#4A31B2
RGBrgb(74, 49, 178)
HSLhsl(252, 57%, 45%)
HSVhsv(252, 72%, 70%)
CMYKcmyk(58.4%, 72.5%, 0%, 30.2%)
CIE-LABlab(31.50, 45.78, -64.62)
CIE-LCHlch(31.50, 79.19, 305.32°)
OKLaboklab(42.95% 0.0455 -0.1861)
OKLCHoklch(42.95% 0.192 283.7)
XYZxyz(11.9558, 6.8661, 42.8061)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A31B2 #99B231
analogous
#3159B2 #4A31B2 #8B31B2
triadic
#4A31B2 #B24A31 #31B24A
tetradic
#4A31B2 #B23159 #99B231 #31B28B
square
#4A31B2 #B23159 #99B231 #31B28B
split-complementary
#4A31B2 #B28B31 #59B231
monochromatic
#221752 #362482 #4A31B2 #6A51CF #9381DC

Accessibility & contrast

On white

8.85
#4A31B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4A31B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A31B2
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A31B2#FFFFFF#000000##FFFFFF
##4A31B21.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#0046B0
Tritanopia (blue-blind)
#0D546E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4a31b2;
/* rgb */ color: rgb(74, 49, 178);
/* oklch */ color: oklch(43.0% 0.192 283.7);
Tailwind
colors: {
  custom: {
    50: '#886cca',
    500: '#4a31b2',
    950: '#000000',
  },
}
SCSS
$custom: #4a31b2;
$custom-light: #886cca;
$custom-dark: #000000;
JSON
{
  "hex": "#4a31b2",
  "rgb": {
    "r": 74,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 251.628,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42952,
    "c": 0.19158,
    "h": 283.7
  },
  "luminance": 0.06867
}

Semantic roles & 50–950 ramp

primary
#4A31B2
secondary
#B7C579
accent
#E048C3
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4A31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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