#4B31CC#4B31CC

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

Color values

HEX#4B31CC
RGBrgb(75, 49, 204)
HSLhsl(250, 61%, 50%)
HSVhsv(250, 76%, 80%)
CMYKcmyk(63.2%, 76%, 0%, 20%)
CIE-LABlab(34.09, 53.67, -75.66)
CIE-LCHlch(34.09, 92.76, 305.35°)
OKLaboklab(45.56% 0.0408 -0.2183)
OKLCHoklch(45.56% 0.222 280.6)
XYZxyz(14.8956, 8.0510, 57.8841)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B31CC #B2CC31
analogous
#3164CC #4B31CC #9931CC
triadic
#4B31CC #CC4B31 #31CC4B
tetradic
#4B31CC #CC3164 #B2CC31 #31CC99
square
#4B31CC #CC3164 #B2CC31 #31CC99
split-complementary
#4B31CC #CC9931 #64CC31
monochromatic
#271969 #39259B #4B31CC #7561D9 #A092E5

Accessibility & contrast

On white

8.04
#4B31CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#4B31CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B31CC
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B31CC#FFFFFF#000000##FFFFFF
##4B31CC1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b31cc;
/* rgb */ color: rgb(75, 49, 204);
/* oklch */ color: oklch(45.6% 0.222 280.6);
Tailwind
colors: {
  custom: {
    50: '#8d6ddd',
    500: '#4b31cc',
    950: '#000000',
  },
}
SCSS
$custom: #4b31cc;
$custom-light: #8d6ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#4b31cc",
  "rgb": {
    "r": 75,
    "g": 49,
    "b": 204
  },
  "hsl": {
    "h": 250.065,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.45555,
    "c": 0.22211,
    "h": 280.6
  },
  "luminance": 0.08052
}

Semantic roles & 50–950 ramp

primary
#4B31CC
secondary
#C4D089
accent
#E443C9
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4B31CC

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

Preview Lab → · Contrast checker → · Palette generator →

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