#4C31B3#4C31B3

#4C31B3 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.2% C 0.193 H 284.5°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#4C31B3
RGBrgb(76, 49, 179)
HSLhsl(252, 57%, 45%)
HSVhsv(252, 73%, 70%)
CMYKcmyk(57.5%, 72.6%, 0%, 29.8%)
CIE-LABlab(31.78, 46.37, -64.75)
CIE-LCHlch(31.78, 79.64, 305.61°)
OKLaboklab(43.22% 0.0481 -0.1864)
OKLCHoklch(43.22% 0.193 284.5)
XYZxyz(12.2130, 6.9871, 43.3442)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C31B3 #98B331
analogous
#3157B3 #4C31B3 #8D31B3
triadic
#4C31B3 #B34C31 #31B34C
tetradic
#4C31B3 #B33157 #98B331 #31B38D
square
#4C31B3 #B33157 #98B331 #31B38D
split-complementary
#4C31B3 #B38D31 #57B331
monochromatic
#231753 #382483 #4C31B3 #6C52D0 #9582DD

Accessibility & contrast

On white

8.76
#4C31B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#4C31B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C31B3
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C31B3#FFFFFF#000000##FFFFFF
##4C31B31.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB7
Deuteranopia (green-blind)
#0047B1
Tritanopia (blue-blind)
#16546F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4c31b3;
/* rgb */ color: rgb(76, 49, 179);
/* oklch */ color: oklch(43.2% 0.193 284.5);
Tailwind
colors: {
  custom: {
    50: '#896ccb',
    500: '#4c31b3',
    950: '#000000',
  },
}
SCSS
$custom: #4c31b3;
$custom-light: #896ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#4c31b3",
  "rgb": {
    "r": 76,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 252.462,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43222,
    "c": 0.19255,
    "h": 284.5
  },
  "luminance": 0.06988
}

Semantic roles & 50–950 ramp

primary
#4C31B3
secondary
#B6C67A
accent
#E048C1
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4C31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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