#531F8A#531F8A

#531F8A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.165 H 300.7°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#531F8A
RGBrgb(83, 31, 138)
HSLhsl(269, 63%, 33%)
HSVhsv(269, 78%, 54%)
CMYKcmyk(39.9%, 77.5%, 0%, 45.9%)
CIE-LABlab(25.73, 45.00, -49.68)
CIE-LCHlch(25.73, 67.03, 312.17°)
OKLaboklab(38% 0.0842 -0.1419)
OKLCHoklch(38% 0.165 300.7)
XYZxyz(8.6436, 4.6539, 24.4827)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531F8A #568A1F
analogous
#1F208A #531F8A #881F8A
triadic
#531F8A #8A531F #1F8A53
tetradic
#531F8A #8A1F20 #568A1F #1F8A88
square
#531F8A #8A1F20 #568A1F #1F8A88
split-complementary
#531F8A #8A881F #208A1F
monochromatic
#170926 #351458 #531F8A #712ABC #904CD7

Accessibility & contrast

On white

10.88
#531F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#531F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531F8A
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531F8A#FFFFFF#000000##FFFFFF
##531F8A1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#463B53
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #531f8a;
/* rgb */ color: rgb(83, 31, 138);
/* oklch */ color: oklch(38.0% 0.165 300.7);
Tailwind
colors: {
  custom: {
    50: '#8961ad',
    500: '#531f8a',
    950: '#000000',
  },
}
SCSS
$custom: #531f8a;
$custom-light: #8961ad;
$custom-dark: #000000;
JSON
{
  "hex": "#531f8a",
  "rgb": {
    "r": 83,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 269.159,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38001,
    "c": 0.16498,
    "h": 300.7
  },
  "luminance": 0.04654
}

Semantic roles & 50–950 ramp

primary
#531F8A
secondary
#84BA4B
accent
#E64196
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #531F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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