#531B8D#531B8D

#531B8D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.172 H 300.3°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#531B8D
RGBrgb(83, 27, 141)
HSLhsl(269, 68%, 33%)
HSVhsv(269, 81%, 55%)
CMYKcmyk(41.1%, 80.9%, 0%, 44.7%)
CIE-LABlab(25.40, 47.45, -52.08)
CIE-LCHlch(25.40, 70.46, 312.34°)
OKLaboklab(37.86% 0.0868 -0.1489)
OKLCHoklch(37.86% 0.172 300.3)
XYZxyz(8.7657, 4.5459, 25.6098)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531B8D #558D1B
analogous
#1B1C8D #531B8D #8C1B8D
triadic
#531B8D #8D531B #1B8D53
tetradic
#531B8D #8D1B1C #558D1B #1B8D8C
square
#531B8D #8D1B1C #558D1B #1B8D8C
split-complementary
#531B8D #8D8C1B #1C8D1B
monochromatic
#170726 #35115A #531B8D #7125C0 #9047DC

Accessibility & contrast

On white

11.00
#531B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#531B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531B8D
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531B8D#FFFFFF#000000##FFFFFF
##531B8D1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#453A54
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #531b8d;
/* rgb */ color: rgb(83, 27, 141);
/* oklch */ color: oklch(37.9% 0.172 300.3);
Tailwind
colors: {
  custom: {
    50: '#8a5faf',
    500: '#531b8d',
    950: '#000000',
  },
}
SCSS
$custom: #531b8d;
$custom-light: #8a5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#531b8d",
  "rgb": {
    "r": 83,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 269.474,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37856,
    "c": 0.17236,
    "h": 300.3
  },
  "luminance": 0.04546
}

Semantic roles & 50–950 ramp

primary
#531B8D
secondary
#83BD46
accent
#EB3D95
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #531B8D

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

Preview Lab → · Contrast checker → · Palette generator →

#531B8D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva