#4C31C0#4C31C0

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

Color values

HEX#4C31C0
RGBrgb(76, 49, 192)
HSLhsl(251, 59%, 47%)
HSVhsv(251, 74%, 75%)
CMYKcmyk(60.4%, 74.5%, 0%, 24.7%)
CIE-LABlab(33.00, 50.24, -70.43)
CIE-LCHlch(33.00, 86.51, 305.50°)
OKLaboklab(44.46% 0.0451 -0.203)
OKLCHoklch(44.46% 0.208 282.5)
XYZxyz(13.5903, 7.5380, 50.5978)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C31C0 #A5C031
analogous
#315DC0 #4C31C0 #9431C0
triadic
#4C31C0 #C04C31 #31C04C
tetradic
#4C31C0 #C0315D #A5C031 #31C094
square
#4C31C0 #C0315D #A5C031 #31C094
split-complementary
#4C31C0 #C09431 #5DC031
monochromatic
#25185E #39258F #4C31C0 #7159D5 #9B8AE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C31C0#FFFFFF#000000##FFFFFF
##4C31C01.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)
#0052C4
Deuteranopia (green-blind)
#0049BD
Tritanopia (blue-blind)
#005976
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4c31c0;
/* rgb */ color: rgb(76, 49, 192);
/* oklch */ color: oklch(44.5% 0.208 282.5);
Tailwind
colors: {
  custom: {
    50: '#8c6cd4',
    500: '#4c31c0',
    950: '#000000',
  },
}
SCSS
$custom: #4c31c0;
$custom-light: #8c6cd4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c31c0",
  "rgb": {
    "r": 76,
    "g": 49,
    "b": 192
  },
  "hsl": {
    "h": 251.329,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.44459,
    "c": 0.208,
    "h": 282.5
  },
  "luminance": 0.07539
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C31C0

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

Preview Lab → · Contrast checker → · Palette generator →

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