#310539#310539

#310539 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.3% C 0.100 H 320.9°. Best body text is #FFFFFF at 17.34:1 contrast (WCAG AA passes).

Color values

HEX#310539
RGBrgb(49, 5, 57)
HSLhsl(291, 84%, 12%)
HSVhsv(291, 91%, 22%)
CMYKcmyk(14%, 91.2%, 0%, 77.6%)
CIE-LABlab(9.46, 29.66, -22.40)
CIE-LCHlch(9.46, 37.17, 322.93°)
OKLaboklab(23.27% 0.0773 -0.0628)
OKLCHoklch(23.27% 0.1 320.9)
XYZxyz(2.0593, 1.0570, 3.9657)
Luminance0.0106 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310539 #0D3905
analogous
#170539 #310539 #390527
triadic
#310539 #393105 #053931
tetradic
#310539 #391705 #0D3905 #052739
square
#310539 #391705 #0D3905 #052739
split-complementary
#310539 #273905 #053917
monochromatic
#18021C #18021C #310539 #610A71 #920FAA

Accessibility & contrast

On white

17.34
#310539 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#310539 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310539
17.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310539#FFFFFF#000000##FFFFFF
##3105391.0017.341.2117.34
#FFFFFF17.341.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173A
Deuteranopia (green-blind)
#0B1C38
Tritanopia (blue-blind)
#31101F
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310539;
/* rgb */ color: rgb(49, 5, 57);
/* oklch */ color: oklch(23.3% 0.100 320.9);
Tailwind
colors: {
  custom: {
    50: '#6c4b70',
    500: '#310539',
    950: '#000000',
  },
}
SCSS
$custom: #310539;
$custom-light: #6c4b70;
$custom-dark: #000000;
JSON
{
  "hex": "#310539",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 57
  },
  "hsl": {
    "h": 290.769,
    "s": 83.871,
    "l": 12.157
  },
  "oklch": {
    "l": 0.23268,
    "c": 0.09963,
    "h": 320.9
  },
  "luminance": 0.01057
}

Semantic roles & 50–950 ramp

primary
#310539
secondary
#2E7A20
accent
#FA2E4D
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #310539

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

Preview Lab → · Contrast checker → · Palette generator →

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