#310531#310531

#310531 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.6% C 0.092 H 328.1°. Best body text is #FFFFFF at 17.55:1 contrast (WCAG AA passes).

Color values

HEX#310531
RGBrgb(49, 5, 49)
HSLhsl(300, 81%, 11%)
HSVhsv(300, 90%, 19%)
CMYKcmyk(0%, 89.8%, 0%, 80.8%)
CIE-LABlab(8.85, 27.98, -17.53)
CIE-LCHlch(8.85, 33.02, 327.93°)
OKLaboklab(22.65% 0.0781 -0.0486)
OKLCHoklch(22.65% 0.092 328.1)
XYZxyz(1.8752, 0.9834, 2.9962)
Luminance0.0098 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310531 #053105
analogous
#1B0531 #310531 #31051B
triadic
#310531 #313105 #053131
tetradic
#310531 #311B05 #053105 #051B31
square
#310531 #311B05 #053105 #051B31
split-complementary
#310531 #1B3105 #05311B
monochromatic
#1C031C #1C031C #310531 #690B69 #A010A0

Accessibility & contrast

On white

17.55
#310531 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#310531 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310531
17.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310531#FFFFFF#000000##FFFFFF
##3105311.0017.551.2017.55
#FFFFFF17.551.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001532
Deuteranopia (green-blind)
#111B30
Tritanopia (blue-blind)
#330C1A
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #310531;
/* rgb */ color: rgb(49, 5, 49);
/* oklch */ color: oklch(22.6% 0.092 328.1);
Tailwind
colors: {
  custom: {
    50: '#6b4a69',
    500: '#310531',
    950: '#000000',
  },
}
SCSS
$custom: #310531;
$custom-light: #6b4a69;
$custom-dark: #000000;
JSON
{
  "hex": "#310531",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 49
  },
  "hsl": {
    "h": 300,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.22645,
    "c": 0.09201,
    "h": 328.1
  },
  "luminance": 0.00983
}

Semantic roles & 50–950 ramp

primary
#310531
secondary
#1F721F
accent
#F83030
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #310531

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

Preview Lab → · Contrast checker → · Palette generator →

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