#531F9E#531F9E

#531F9E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.187 H 294.8°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#531F9E
RGBrgb(83, 31, 158)
HSLhsl(265, 67%, 37%)
HSVhsv(265, 80%, 62%)
CMYKcmyk(47.5%, 80.4%, 0%, 38%)
CIE-LABlab(27.54, 50.15, -59.04)
CIE-LCHlch(27.54, 77.46, 310.35°)
OKLaboklab(39.83% 0.0784 -0.1693)
OKLCHoklch(39.83% 0.187 294.8)
XYZxyz(10.2271, 5.2873, 32.8228)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531F9E #6A9E1F
analogous
#1F2A9E #531F9E #931F9E
triadic
#531F9E #9E531F #1F9E53
tetradic
#531F9E #9E1F2A #6A9E1F #1F9E93
square
#531F9E #9E1F2A #6A9E1F #1F9E93
split-complementary
#531F9E #9E931F #2A9E1F
monochromatic
#1D0B38 #38156B #531F9E #6E29D1 #9059DE

Accessibility & contrast

On white

10.21
#531F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #531F9E
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531F9E#FFFFFF#000000##FFFFFF
##531F9E1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#003F9C
Tritanopia (blue-blind)
#3D435F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #531f9e;
/* rgb */ color: rgb(83, 31, 158);
/* oklch */ color: oklch(39.8% 0.187 294.8);
Tailwind
colors: {
  custom: {
    50: '#8b62bc',
    500: '#531f9e',
    950: '#000000',
  },
}
SCSS
$custom: #531f9e;
$custom-light: #8b62bc;
$custom-dark: #000000;
JSON
{
  "hex": "#531f9e",
  "rgb": {
    "r": 83,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 264.567,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39825,
    "c": 0.1866,
    "h": 294.8
  },
  "luminance": 0.05288
}

Semantic roles & 50–950 ramp

primary
#531F9E
secondary
#96C256
accent
#EA3EA4
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #531F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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