#531F8B#531F8B

#531F8B is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.166 H 300.4°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#531F8B
RGBrgb(83, 31, 139)
HSLhsl(269, 64%, 33%)
HSVhsv(269, 78%, 55%)
CMYKcmyk(40.3%, 77.7%, 0%, 45.5%)
CIE-LABlab(25.81, 45.25, -50.16)
CIE-LCHlch(25.81, 67.56, 312.06°)
OKLaboklab(38.09% 0.084 -0.1433)
OKLCHoklch(38.09% 0.166 300.4)
XYZxyz(8.7163, 4.6830, 24.8658)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531F8B #578B1F
analogous
#1F218B #531F8B #891F8B
triadic
#531F8B #8B531F #1F8B53
tetradic
#531F8B #8B1F21 #578B1F #1F8B89
square
#531F8B #8B1F21 #578B1F #1F8B89
split-complementary
#531F8B #8B891F #218B1F
monochromatic
#170927 #351459 #531F8B #712ABD #904DD7

Accessibility & contrast

On white

10.84
#531F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#531F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531F8B
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531F8B#FFFFFF#000000##FFFFFF
##531F8B1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003C89
Tritanopia (blue-blind)
#463B54
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #531f8b;
/* rgb */ color: rgb(83, 31, 139);
/* oklch */ color: oklch(38.1% 0.166 300.4);
Tailwind
colors: {
  custom: {
    50: '#8961ae',
    500: '#531f8b',
    950: '#000000',
  },
}
SCSS
$custom: #531f8b;
$custom-light: #8961ae;
$custom-dark: #000000;
JSON
{
  "hex": "#531f8b",
  "rgb": {
    "r": 83,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 268.889,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38089,
    "c": 0.16607,
    "h": 300.4
  },
  "luminance": 0.04683
}

Semantic roles & 50–950 ramp

primary
#531F8B
secondary
#85BA4C
accent
#E74197
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #531F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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