#531F8E#531F8E

#531F8E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.169 H 299.4°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#531F8E
RGBrgb(83, 31, 142)
HSLhsl(268, 64%, 34%)
HSVhsv(268, 78%, 56%)
CMYKcmyk(41.5%, 78.2%, 0%, 44.3%)
CIE-LABlab(26.07, 46.02, -51.59)
CIE-LCHlch(26.07, 69.14, 311.73°)
OKLaboklab(38.35% 0.0832 -0.1475)
OKLCHoklch(38.35% 0.169 299.4)
XYZxyz(8.9385, 4.7719, 26.0361)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531F8E #5A8E1F
analogous
#1F238E #531F8E #8B1F8E
triadic
#531F8E #8E531F #1F8E53
tetradic
#531F8E #8E1F23 #5A8E1F #1F8E8B
square
#531F8E #8E1F23 #5A8E1F #1F8E8B
split-complementary
#531F8E #8E8B1F #238E1F
monochromatic
#18092A #36145C #531F8E #702AC0 #8F4FD9

Accessibility & contrast

On white

10.74
#531F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #531F8E
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531F8E#FFFFFF#000000##FFFFFF
##531F8E1.0010.741.9510.74
#FFFFFF10.741.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#003D8C
Tritanopia (blue-blind)
#453C56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #531f8e;
/* rgb */ color: rgb(83, 31, 142);
/* oklch */ color: oklch(38.4% 0.169 299.4);
Tailwind
colors: {
  custom: {
    50: '#8961b0',
    500: '#531f8e',
    950: '#000000',
  },
}
SCSS
$custom: #531f8e;
$custom-light: #8961b0;
$custom-dark: #000000;
JSON
{
  "hex": "#531f8e",
  "rgb": {
    "r": 83,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 268.108,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38355,
    "c": 0.16932,
    "h": 299.4
  },
  "luminance": 0.04772
}

Semantic roles & 50–950 ramp

primary
#531F8E
secondary
#88BB4D
accent
#E74199
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #531F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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