#531F9F#531F9F

#531F9F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.188 H 294.6°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#531F9F
RGBrgb(83, 31, 159)
HSLhsl(264, 67%, 37%)
HSVhsv(264, 81%, 62%)
CMYKcmyk(47.8%, 80.5%, 0%, 37.6%)
CIE-LABlab(27.63, 50.41, -59.49)
CIE-LCHlch(27.63, 77.98, 310.28°)
OKLaboklab(39.92% 0.0781 -0.1707)
OKLCHoklch(39.92% 0.188 294.6)
XYZxyz(10.3136, 5.3219, 33.2780)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531F9F #6B9F1F
analogous
#1F2B9F #531F9F #931F9F
triadic
#531F9F #9F531F #1F9F53
tetradic
#531F9F #9F1F2B #6B9F1F #1F9F93
square
#531F9F #9F1F2B #6B9F1F #1F9F93
split-complementary
#531F9F #9F931F #2B9F1F
monochromatic
#1E0B39 #38156C #531F9F #6E29D2 #905ADF

Accessibility & contrast

On white

10.17
#531F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#531F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531F9F
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531F9F#FFFFFF#000000##FFFFFF
##531F9F1.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A2
Deuteranopia (green-blind)
#003F9D
Tritanopia (blue-blind)
#3C445F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #531f9f;
/* rgb */ color: rgb(83, 31, 159);
/* oklch */ color: oklch(39.9% 0.188 294.6);
Tailwind
colors: {
  custom: {
    50: '#8c62bc',
    500: '#531f9f',
    950: '#000000',
  },
}
SCSS
$custom: #531f9f;
$custom-light: #8c62bc;
$custom-dark: #000000;
JSON
{
  "hex": "#531f9f",
  "rgb": {
    "r": 83,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 264.375,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39919,
    "c": 0.18767,
    "h": 294.6
  },
  "luminance": 0.05322
}

Semantic roles & 50–950 ramp

primary
#531F9F
secondary
#97C357
accent
#EA3EA4
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #531F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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