#531F9A#531F9A

#531F9A is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.182 H 295.9°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#531F9A
RGBrgb(83, 31, 154)
HSLhsl(265, 66%, 36%)
HSVhsv(265, 80%, 60%)
CMYKcmyk(46.1%, 79.9%, 0%, 39.6%)
CIE-LABlab(27.16, 49.11, -57.21)
CIE-LCHlch(27.16, 75.40, 310.65°)
OKLaboklab(39.45% 0.0797 -0.164)
OKLCHoklch(39.45% 0.182 295.9)
XYZxyz(9.8884, 5.1518, 31.0390)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531F9A #669A1F
analogous
#1F299A #531F9A #911F9A
triadic
#531F9A #9A531F #1F9A53
tetradic
#531F9A #9A1F29 #669A1F #1F9A91
square
#531F9A #9A1F29 #669A1F #1F9A91
split-complementary
#531F9A #9A911F #299A1F
monochromatic
#1C0A34 #381567 #531F9A #6E29CD #8F56DD

Accessibility & contrast

On white

10.34
#531F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#531F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531F9A
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531F9A#FFFFFF#000000##FFFFFF
##531F9A1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419D
Deuteranopia (green-blind)
#003E98
Tritanopia (blue-blind)
#3F425C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #531f9a;
/* rgb */ color: rgb(83, 31, 154);
/* oklch */ color: oklch(39.5% 0.182 295.9);
Tailwind
colors: {
  custom: {
    50: '#8b61b9',
    500: '#531f9a',
    950: '#000000',
  },
}
SCSS
$custom: #531f9a;
$custom-light: #8b61b9;
$custom-dark: #000000;
JSON
{
  "hex": "#531f9a",
  "rgb": {
    "r": 83,
    "g": 31,
    "b": 154
  },
  "hsl": {
    "h": 265.366,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3945,
    "c": 0.18231,
    "h": 295.9
  },
  "luminance": 0.05152
}

Semantic roles & 50–950 ramp

primary
#531F9A
secondary
#93C154
accent
#E93EA1
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #531F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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