#4B31B8#4B31B8

#4B31B8 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.6% C 0.199 H 283.3°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#4B31B8
RGBrgb(75, 49, 184)
HSLhsl(252, 58%, 46%)
HSVhsv(252, 73%, 72%)
CMYKcmyk(59.2%, 73.4%, 0%, 27.8%)
CIE-LABlab(32.15, 47.73, -67.11)
CIE-LCHlch(32.15, 82.35, 305.42°)
OKLaboklab(43.61% 0.0456 -0.1934)
OKLCHoklch(43.61% 0.199 283.3)
XYZxyz(12.6490, 7.1523, 46.0521)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B31B8 #9EB831
analogous
#315AB8 #4B31B8 #8F31B8
triadic
#4B31B8 #B84B31 #31B84B
tetradic
#4B31B8 #B8315A #9EB831 #31B88F
square
#4B31B8 #B8315A #9EB831 #31B88F
split-complementary
#4B31B8 #B88F31 #5AB831
monochromatic
#241757 #372488 #4B31B8 #6D55D2 #9685DE

Accessibility & contrast

On white

8.64
#4B31B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#4B31B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B31B8
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B31B8#FFFFFF#000000##FFFFFF
##4B31B81.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BC
Deuteranopia (green-blind)
#0047B5
Tritanopia (blue-blind)
#015672
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4b31b8;
/* rgb */ color: rgb(75, 49, 184);
/* oklch */ color: oklch(43.6% 0.199 283.3);
Tailwind
colors: {
  custom: {
    50: '#8a6cce',
    500: '#4b31b8',
    950: '#000000',
  },
}
SCSS
$custom: #4b31b8;
$custom-light: #8a6cce;
$custom-dark: #000000;
JSON
{
  "hex": "#4b31b8",
  "rgb": {
    "r": 75,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 251.556,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.43607,
    "c": 0.19867,
    "h": 283.3
  },
  "luminance": 0.07153
}

Semantic roles & 50–950 ramp

primary
#4B31B8
secondary
#B9C87D
accent
#E147C3
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4B31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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