#4C31CC#4C31CC

#4C31CC is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.6% C 0.222 H 281.0°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#4C31CC
RGBrgb(76, 49, 204)
HSLhsl(250, 61%, 50%)
HSVhsv(250, 76%, 80%)
CMYKcmyk(62.7%, 76%, 0%, 20%)
CIE-LABlab(34.17, 53.78, -75.52)
CIE-LCHlch(34.17, 92.71, 305.46°)
OKLaboklab(45.64% 0.0422 -0.2179)
OKLCHoklch(45.64% 0.222 281)
XYZxyz(14.9744, 8.0916, 57.8878)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C31CC #B1CC31
analogous
#3163CC #4C31CC #9A31CC
triadic
#4C31CC #CC4C31 #31CC4C
tetradic
#4C31CC #CC3163 #B1CC31 #31CC9A
square
#4C31CC #CC3163 #B1CC31 #31CC9A
split-complementary
#4C31CC #CC9A31 #63CC31
monochromatic
#271969 #3A259B #4C31CC #7661D9 #A192E5

Accessibility & contrast

On white

8.02
#4C31CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#4C31CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C31CC
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C31CC#FFFFFF#000000##FFFFFF
##4C31CC1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056D0
Deuteranopia (green-blind)
#004BC9
Tritanopia (blue-blind)
#005E7D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4c31cc;
/* rgb */ color: rgb(76, 49, 204);
/* oklch */ color: oklch(45.6% 0.222 281.0);
Tailwind
colors: {
  custom: {
    50: '#8e6ddd',
    500: '#4c31cc',
    950: '#000000',
  },
}
SCSS
$custom: #4c31cc;
$custom-light: #8e6ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#4c31cc",
  "rgb": {
    "r": 76,
    "g": 49,
    "b": 204
  },
  "hsl": {
    "h": 250.452,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.45635,
    "c": 0.22194,
    "h": 281
  },
  "luminance": 0.08093
}

Semantic roles & 50–950 ramp

primary
#4C31CC
secondary
#C3D089
accent
#E443C8
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4C31CC

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

Preview Lab → · Contrast checker → · Palette generator →

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