#4C31BE#4C31BE

#4C31BE is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.3% C 0.206 H 282.8°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#4C31BE
RGBrgb(76, 49, 190)
HSLhsl(251, 59%, 47%)
HSVhsv(251, 74%, 75%)
CMYKcmyk(60%, 74.2%, 0%, 25.5%)
CIE-LABlab(32.81, 49.65, -69.57)
CIE-LCHlch(32.81, 85.47, 305.52°)
OKLaboklab(44.27% 0.0456 -0.2005)
OKLCHoklch(44.27% 0.206 282.8)
XYZxyz(13.3702, 7.4499, 49.4386)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C31BE #A3BE31
analogous
#315DBE #4C31BE #9331BE
triadic
#4C31BE #BE4C31 #31BE4C
tetradic
#4C31BE #BE315D #A3BE31 #31BE93
square
#4C31BE #BE315D #A3BE31 #31BE93
split-complementary
#4C31BE #BE9331 #5DBE31
monochromatic
#25185D #39248D #4C31BE #7058D4 #9A89E1

Accessibility & contrast

On white

8.43
#4C31BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#4C31BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C31BE
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C31BE#FFFFFF#000000##FFFFFF
##4C31BE1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C2
Deuteranopia (green-blind)
#0048BB
Tritanopia (blue-blind)
#005975
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4c31be;
/* rgb */ color: rgb(76, 49, 190);
/* oklch */ color: oklch(44.3% 0.206 282.8);
Tailwind
colors: {
  custom: {
    50: '#8b6cd3',
    500: '#4c31be',
    950: '#000000',
  },
}
SCSS
$custom: #4c31be;
$custom-light: #8b6cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c31be",
  "rgb": {
    "r": 76,
    "g": 49,
    "b": 190
  },
  "hsl": {
    "h": 251.489,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44266,
    "c": 0.20565,
    "h": 282.8
  },
  "luminance": 0.07451
}

Semantic roles & 50–950 ramp

primary
#4C31BE
secondary
#BCCA80
accent
#E246C4
background
#F9F6FD
surface
#F1ECFA
border
#CBC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4C31BE

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

Preview Lab → · Contrast checker → · Palette generator →

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