#5331B1#5331B1

#5331B1 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.190 H 288.0°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#5331B1
RGBrgb(83, 49, 177)
HSLhsl(256, 57%, 44%)
HSVhsv(256, 72%, 69%)
CMYKcmyk(53.1%, 72.3%, 0%, 30.6%)
CIE-LABlab(32.28, 46.84, -62.71)
CIE-LCHlch(32.28, 78.27, 306.76°)
OKLaboklab(43.69% 0.0587 -0.1802)
OKLCHoklch(43.69% 0.19 288)
XYZxyz(12.5991, 7.2093, 42.3141)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5331B1 #8FB131
analogous
#314FB1 #5331B1 #9331B1
triadic
#5331B1 #B15331 #31B153
tetradic
#5331B1 #B1314F #8FB131 #31B193
square
#5331B1 #B1314F #8FB131 #31B193
split-complementary
#5331B1 #B19331 #4FB131
monochromatic
#261651 #3D2481 #5331B1 #7251CF #9980DC

Accessibility & contrast

On white

8.60
#5331B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5331B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5331B1
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5331B1#FFFFFF#000000##FFFFFF
##5331B11.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#0049AF
Tritanopia (blue-blind)
#2E536E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5331b1;
/* rgb */ color: rgb(83, 49, 177);
/* oklch */ color: oklch(43.7% 0.190 288.0);
Tailwind
colors: {
  custom: {
    50: '#8d6cc9',
    500: '#5331b1',
    950: '#000000',
  },
}
SCSS
$custom: #5331b1;
$custom-light: #8d6cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#5331b1",
  "rgb": {
    "r": 83,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 255.938,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43687,
    "c": 0.18956,
    "h": 288
  },
  "luminance": 0.0721
}

Semantic roles & 50–950 ramp

primary
#5331B1
secondary
#B1C579
accent
#E048B8
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5331B1

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

Preview Lab → · Contrast checker → · Palette generator →

#5331B1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva