#4C31C2#4C31C2

#4C31C2 is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.7% C 0.210 H 282.3°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#4C31C2
RGBrgb(76, 49, 194)
HSLhsl(251, 60%, 48%)
HSVhsv(251, 75%, 76%)
CMYKcmyk(60.8%, 74.7%, 0%, 23.9%)
CIE-LABlab(33.19, 50.84, -71.29)
CIE-LCHlch(33.19, 87.56, 305.49°)
OKLaboklab(44.65% 0.0447 -0.2055)
OKLCHoklch(44.65% 0.21 282.3)
XYZxyz(13.8134, 7.6272, 51.7728)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C31C2 #A7C231
analogous
#315FC2 #4C31C2 #9431C2
triadic
#4C31C2 #C24C31 #31C24C
tetradic
#4C31C2 #C2315F #A7C231 #31C294
square
#4C31C2 #C2315F #A7C231 #31C294
split-complementary
#4C31C2 #C29431 #5FC231
monochromatic
#261860 #392591 #4C31C2 #725BD6 #9C8CE2

Accessibility & contrast

On white

8.31
#4C31C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#4C31C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C31C2
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C31C2#FFFFFF#000000##FFFFFF
##4C31C21.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c31c2;
/* rgb */ color: rgb(76, 49, 194);
/* oklch */ color: oklch(44.7% 0.210 282.3);
Tailwind
colors: {
  custom: {
    50: '#8c6dd6',
    500: '#4c31c2',
    950: '#000000',
  },
}
SCSS
$custom: #4c31c2;
$custom-light: #8c6dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c31c2",
  "rgb": {
    "r": 76,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 251.172,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.44653,
    "c": 0.21034,
    "h": 282.3
  },
  "luminance": 0.07628
}

Semantic roles & 50–950 ramp

primary
#4C31C2
secondary
#BECC83
accent
#E345C5
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4C31C2

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

Preview Lab → · Contrast checker → · Palette generator →

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