#4C31B2#4C31B2

#4C31B2 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.191 H 284.6°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#4C31B2
RGBrgb(76, 49, 178)
HSLhsl(253, 57%, 45%)
HSVhsv(253, 72%, 70%)
CMYKcmyk(57.3%, 72.5%, 0%, 30.2%)
CIE-LABlab(31.69, 46.07, -64.31)
CIE-LCHlch(31.69, 79.11, 305.62°)
OKLaboklab(43.13% 0.0483 -0.1851)
OKLCHoklch(43.13% 0.191 284.6)
XYZxyz(12.1122, 6.9467, 42.8135)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C31B2 #97B231
analogous
#3157B2 #4C31B2 #8D31B2
triadic
#4C31B2 #B24C31 #31B24C
tetradic
#4C31B2 #B23157 #97B231 #31B28D
square
#4C31B2 #B23157 #97B231 #31B28D
split-complementary
#4C31B2 #B28D31 #57B231
monochromatic
#231752 #382482 #4C31B2 #6B51CF #9481DC

Accessibility & contrast

On white

8.79
#4C31B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#4C31B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C31B2
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C31B2#FFFFFF#000000##FFFFFF
##4C31B21.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#0046B0
Tritanopia (blue-blind)
#17546E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4c31b2;
/* rgb */ color: rgb(76, 49, 178);
/* oklch */ color: oklch(43.1% 0.191 284.6);
Tailwind
colors: {
  custom: {
    50: '#896cca',
    500: '#4c31b2',
    950: '#000000',
  },
}
SCSS
$custom: #4c31b2;
$custom-light: #896cca;
$custom-dark: #000000;
JSON
{
  "hex": "#4c31b2",
  "rgb": {
    "r": 76,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 252.558,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43129,
    "c": 0.19134,
    "h": 284.6
  },
  "luminance": 0.06947
}

Semantic roles & 50–950 ramp

primary
#4C31B2
secondary
#B6C579
accent
#E048C0
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4C31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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