#310936#310936

#310936 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.5% C 0.090 H 323.1°. Best body text is #FFFFFF at 17.17:1 contrast (WCAG AA passes).

Color values

HEX#310936
RGBrgb(49, 9, 54)
HSLhsl(293, 71%, 12%)
HSVhsv(293, 83%, 21%)
CMYKcmyk(9.3%, 83.3%, 0%, 78.8%)
CIE-LABlab(9.91, 27.03, -19.50)
CIE-LCHlch(9.91, 33.33, 324.20°)
OKLaboklab(23.52% 0.0723 -0.0544)
OKLCHoklch(23.52% 0.091 323.1)
XYZxyz(2.0301, 1.1148, 3.5976)
Luminance0.0112 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310936 #0E3609
analogous
#1A0936 #310936 #360925
triadic
#310936 #363109 #093631
tetradic
#310936 #361A09 #0E3609 #092536
square
#310936 #361A09 #0E3609 #092536
split-complementary
#310936 #253609 #09361A
monochromatic
#18041A #18041A #310936 #61126A #901A9F

Accessibility & contrast

On white

17.17
#310936 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#310936 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310936
17.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310936#FFFFFF#000000##FFFFFF
##3109361.0017.171.2217.17
#FFFFFF17.171.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001837
Deuteranopia (green-blind)
#101D35
Tritanopia (blue-blind)
#32111E
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310936;
/* rgb */ color: rgb(49, 9, 54);
/* oklch */ color: oklch(23.5% 0.090 323.1);
Tailwind
colors: {
  custom: {
    50: '#6b4d6d',
    500: '#310936',
    950: '#000000',
  },
}
SCSS
$custom: #310936;
$custom-light: #6b4d6d;
$custom-dark: #000000;
JSON
{
  "hex": "#310936",
  "rgb": {
    "r": 49,
    "g": 9,
    "b": 54
  },
  "hsl": {
    "h": 293.333,
    "s": 71.429,
    "l": 12.353
  },
  "oklch": {
    "l": 0.23518,
    "c": 0.0905,
    "h": 323.1
  },
  "luminance": 0.01115
}

Semantic roles & 50–950 ramp

primary
#310936
secondary
#2F7427
accent
#EE3A4E
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #310936

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

Preview Lab → · Contrast checker → · Palette generator →

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