#4A31C2#4A31C2

#4A31C2 is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.5% C 0.211 H 281.5°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#4A31C2
RGBrgb(74, 49, 194)
HSLhsl(250, 60%, 48%)
HSVhsv(250, 75%, 76%)
CMYKcmyk(61.9%, 74.7%, 0%, 23.9%)
CIE-LABlab(33.02, 50.59, -71.58)
CIE-LCHlch(33.02, 87.65, 305.25°)
OKLaboklab(44.49% 0.0418 -0.2065)
OKLCHoklch(44.49% 0.211 281.5)
XYZxyz(13.6569, 7.5465, 51.7654)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A31C2 #A9C231
analogous
#3160C2 #4A31C2 #9331C2
triadic
#4A31C2 #C24A31 #31C24A
tetradic
#4A31C2 #C23160 #A9C231 #31C293
square
#4A31C2 #C23160 #A9C231 #31C293
split-complementary
#4A31C2 #C29331 #60C231
monochromatic
#251860 #372591 #4A31C2 #705BD6 #9A8CE2

Accessibility & contrast

On white

8.37
#4A31C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#4A31C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A31C2
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A31C2#FFFFFF#000000##FFFFFF
##4A31C21.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C6
Deuteranopia (green-blind)
#0048BF
Tritanopia (blue-blind)
#005A77
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4a31c2;
/* rgb */ color: rgb(74, 49, 194);
/* oklch */ color: oklch(44.5% 0.211 281.5);
Tailwind
colors: {
  custom: {
    50: '#8b6cd6',
    500: '#4a31c2',
    950: '#000000',
  },
}
SCSS
$custom: #4a31c2;
$custom-light: #8b6cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#4a31c2",
  "rgb": {
    "r": 74,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 250.345,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.44487,
    "c": 0.21065,
    "h": 281.5
  },
  "luminance": 0.07548
}

Semantic roles & 50–950 ramp

primary
#4A31C2
secondary
#BFCC83
accent
#E345C8
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4A31C2

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

Preview Lab → · Contrast checker → · Palette generator →

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