#531988#531988

#531988 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.169 H 302.1°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#531988
RGBrgb(83, 25, 136)
HSLhsl(271, 69%, 32%)
HSVhsv(271, 82%, 53%)
CMYKcmyk(39%, 81.6%, 0%, 46.7%)
CIE-LABlab(24.68, 47.01, -50.14)
CIE-LCHlch(24.68, 68.73, 313.16°)
OKLaboklab(37.21% 0.09 -0.1432)
OKLCHoklch(37.21% 0.169 302.1)
XYZxyz(8.3578, 4.3118, 23.6797)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531988 #4E8819
analogous
#1B1988 #531988 #881986
triadic
#531988 #885319 #198853
tetradic
#531988 #881B19 #4E8819 #198688
square
#531988 #881B19 #4E8819 #198688
split-complementary
#531988 #868819 #19881B
monochromatic
#140621 #330F54 #531988 #7323BC #9140DC

Accessibility & contrast

On white

11.28
#531988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#531988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531988
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531988#FFFFFF#000000##FFFFFF
##5319881.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8B
Deuteranopia (green-blind)
#003A86
Tritanopia (blue-blind)
#473751
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #531988;
/* rgb */ color: rgb(83, 25, 136);
/* oklch */ color: oklch(37.2% 0.169 302.1);
Tailwind
colors: {
  custom: {
    50: '#895eac',
    500: '#531988',
    950: '#000000',
  },
}
SCSS
$custom: #531988;
$custom-light: #895eac;
$custom-dark: #000000;
JSON
{
  "hex": "#531988",
  "rgb": {
    "r": 83,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 271.351,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37214,
    "c": 0.16911,
    "h": 302.1
  },
  "luminance": 0.04312
}

Semantic roles & 50–950 ramp

primary
#531988
secondary
#7CBB41
accent
#EC3C90
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #531988

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

Preview Lab → · Contrast checker → · Palette generator →

#531988 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva