#531F8D#531F8D

#531F8D is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.168 H 299.7°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#531F8D
RGBrgb(83, 31, 141)
HSLhsl(268, 64%, 34%)
HSVhsv(268, 78%, 55%)
CMYKcmyk(41.1%, 78%, 0%, 44.7%)
CIE-LABlab(25.99, 45.76, -51.12)
CIE-LCHlch(25.99, 68.61, 311.84°)
OKLaboklab(38.27% 0.0834 -0.1461)
OKLCHoklch(38.27% 0.168 299.7)
XYZxyz(8.8638, 4.7420, 25.6424)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531F8D #598D1F
analogous
#1F228D #531F8D #8A1F8D
triadic
#531F8D #8D531F #1F8D53
tetradic
#531F8D #8D1F22 #598D1F #1F8D8A
square
#531F8D #8D1F22 #598D1F #1F8D8A
split-complementary
#531F8D #8D8A1F #228D1F
monochromatic
#180929 #35145B #531F8D #712ABF #8F4ED8

Accessibility & contrast

On white

10.78
#531F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#531F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531F8D
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531F8D#FFFFFF#000000##FFFFFF
##531F8D1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#003D8B
Tritanopia (blue-blind)
#453C55
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #531f8d;
/* rgb */ color: rgb(83, 31, 141);
/* oklch */ color: oklch(38.3% 0.168 299.7);
Tailwind
colors: {
  custom: {
    50: '#8961af',
    500: '#531f8d',
    950: '#000000',
  },
}
SCSS
$custom: #531f8d;
$custom-light: #8961af;
$custom-dark: #000000;
JSON
{
  "hex": "#531f8d",
  "rgb": {
    "r": 83,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 268.364,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38266,
    "c": 0.16824,
    "h": 299.7
  },
  "luminance": 0.04742
}

Semantic roles & 50–950 ramp

primary
#531F8D
secondary
#87BB4D
accent
#E74198
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #531F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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