#4C31CF#4C31CF

#4C31CF is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.9% C 0.225 H 280.6°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#4C31CF
RGBrgb(76, 49, 207)
HSLhsl(250, 62%, 50%)
HSVhsv(250, 76%, 81%)
CMYKcmyk(63.3%, 76.3%, 0%, 18.8%)
CIE-LABlab(34.47, 54.66, -76.77)
CIE-LCHlch(34.47, 94.24, 305.45°)
OKLaboklab(45.93% 0.0414 -0.2215)
OKLCHoklch(45.93% 0.225 280.6)
XYZxyz(15.3377, 8.2369, 59.8010)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C31CF #B4CF31
analogous
#3165CF #4C31CF #9B31CF
triadic
#4C31CF #CF4C31 #31CF4C
tetradic
#4C31CF #CF3165 #B4CF31 #31CF9B
square
#4C31CF #CF3165 #B4CF31 #31CF9B
split-complementary
#4C31CF #CF9B31 #65CF31
monochromatic
#27196C #3A259E #4C31CF #7763DB #A294E6

Accessibility & contrast

On white

7.93
#4C31CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#4C31CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C31CF
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C31CF#FFFFFF#000000##FFFFFF
##4C31CF1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057D3
Deuteranopia (green-blind)
#004BCC
Tritanopia (blue-blind)
#005F7F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4c31cf;
/* rgb */ color: rgb(76, 49, 207);
/* oklch */ color: oklch(45.9% 0.225 280.6);
Tailwind
colors: {
  custom: {
    50: '#8e6ddf',
    500: '#4c31cf',
    950: '#000000',
  },
}
SCSS
$custom: #4c31cf;
$custom-light: #8e6ddf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c31cf",
  "rgb": {
    "r": 76,
    "g": 49,
    "b": 207
  },
  "hsl": {
    "h": 250.253,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.45933,
    "c": 0.22539,
    "h": 280.6
  },
  "luminance": 0.08238
}

Semantic roles & 50–950 ramp

primary
#4C31CF
secondary
#C5D18B
accent
#E543C9
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4C31CF

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

Preview Lab → · Contrast checker → · Palette generator →

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