#4B31BB#4B31BB

#4B31BB is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 43.9% C 0.202 H 282.8°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#4B31BB
RGBrgb(75, 49, 187)
HSLhsl(251, 58%, 46%)
HSVhsv(251, 74%, 73%)
CMYKcmyk(59.9%, 73.8%, 0%, 26.7%)
CIE-LABlab(32.43, 48.62, -68.42)
CIE-LCHlch(32.43, 83.94, 305.40°)
OKLaboklab(43.89% 0.0449 -0.1972)
OKLCHoklch(43.89% 0.202 282.8)
XYZxyz(12.9668, 7.2795, 47.7259)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B31BB #A1BB31
analogous
#315CBB #4B31BB #9031BB
triadic
#4B31BB #BB4B31 #31BB4B
tetradic
#4B31BB #BB315C #A1BB31 #31BB90
square
#4B31BB #BB315C #A1BB31 #31BB90
split-complementary
#4B31BB #BB9031 #5CBB31
monochromatic
#24185A #38248B #4B31BB #6E56D3 #9887E0

Accessibility & contrast

On white

8.55
#4B31BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#4B31BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B31BB
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B31BB#FFFFFF#000000##FFFFFF
##4B31BB1.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BF
Deuteranopia (green-blind)
#0048B8
Tritanopia (blue-blind)
#005773
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4b31bb;
/* rgb */ color: rgb(75, 49, 187);
/* oklch */ color: oklch(43.9% 0.202 282.8);
Tailwind
colors: {
  custom: {
    50: '#8a6cd1',
    500: '#4b31bb',
    950: '#000000',
  },
}
SCSS
$custom: #4b31bb;
$custom-light: #8a6cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#4b31bb",
  "rgb": {
    "r": 75,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 251.304,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.43893,
    "c": 0.20224,
    "h": 282.8
  },
  "luminance": 0.0728
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4B31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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