#310536#310536

#310536 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 23.0% C 0.097 H 323.5°. Best body text is #FFFFFF at 17.42:1 contrast (WCAG AA passes).

Color values

HEX#310536
RGBrgb(49, 5, 54)
HSLhsl(294, 83%, 12%)
HSVhsv(294, 91%, 21%)
CMYKcmyk(9.3%, 90.7%, 0%, 78.8%)
CIE-LABlab(9.22, 29.01, -20.60)
CIE-LCHlch(9.22, 35.59, 324.62°)
OKLaboklab(23.03% 0.0777 -0.0576)
OKLCHoklch(23.03% 0.097 323.5)
XYZxyz(1.9867, 1.0280, 3.5831)
Luminance0.0103 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310536 #0A3605
analogous
#190536 #310536 #360523
triadic
#310536 #363105 #053631
tetradic
#310536 #361905 #0A3605 #052336
square
#310536 #361905 #0A3605 #052336
split-complementary
#310536 #233605 #053619
monochromatic
#19031C #19031C #310536 #640A6E #970FA6

Accessibility & contrast

On white

17.42
#310536 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310536
17.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310536#FFFFFF#000000##FFFFFF
##3105361.0017.421.2117.42
#FFFFFF17.421.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001737
Deuteranopia (green-blind)
#0D1C35
Tritanopia (blue-blind)
#320E1D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310536;
/* rgb */ color: rgb(49, 5, 54);
/* oklch */ color: oklch(23.0% 0.097 323.5);
Tailwind
colors: {
  custom: {
    50: '#6b4b6d',
    500: '#310536',
    950: '#000000',
  },
}
SCSS
$custom: #310536;
$custom-light: #6b4b6d;
$custom-dark: #000000;
JSON
{
  "hex": "#310536",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 54
  },
  "hsl": {
    "h": 293.878,
    "s": 83.051,
    "l": 11.569
  },
  "oklch": {
    "l": 0.23027,
    "c": 0.09674,
    "h": 323.5
  },
  "luminance": 0.01028
}

Semantic roles & 50–950 ramp

primary
#310536
secondary
#297720
accent
#F92E43
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #310536

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

Preview Lab → · Contrast checker → · Palette generator →

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