#310937#310937

#310937 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.6% C 0.092 H 322.1°. Best body text is #FFFFFF at 17.15:1 contrast (WCAG AA passes).

Color values

HEX#310937
RGBrgb(49, 9, 55)
HSLhsl(292, 72%, 13%)
HSVhsv(292, 84%, 22%)
CMYKcmyk(10.9%, 83.6%, 0%, 78.4%)
CIE-LABlab(9.99, 27.25, -20.11)
CIE-LCHlch(9.99, 33.87, 323.58°)
OKLaboklab(23.59% 0.0723 -0.0562)
OKLCHoklch(23.59% 0.092 322.1)
XYZxyz(2.0538, 1.1243, 3.7225)
Luminance0.0112 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310937 #0F3709
analogous
#1A0937 #310937 #370926
triadic
#310937 #373109 #093731
tetradic
#310937 #371A09 #0F3709 #092637
square
#310937 #371A09 #0F3709 #092637
split-complementary
#310937 #263709 #09371A
monochromatic
#17041A #17041A #310937 #60126C #8F1AA0

Accessibility & contrast

On white

17.15
#310937 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310937
17.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310937#FFFFFF#000000##FFFFFF
##3109371.0017.151.2217.15
#FFFFFF17.151.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001938
Deuteranopia (green-blind)
#0F1D36
Tritanopia (blue-blind)
#32111F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #310937;
/* rgb */ color: rgb(49, 9, 55);
/* oklch */ color: oklch(23.6% 0.092 322.1);
Tailwind
colors: {
  custom: {
    50: '#6b4d6e',
    500: '#310937',
    950: '#000000',
  },
}
SCSS
$custom: #310937;
$custom-light: #6b4d6e;
$custom-dark: #000000;
JSON
{
  "hex": "#310937",
  "rgb": {
    "r": 49,
    "g": 9,
    "b": 55
  },
  "hsl": {
    "h": 292.174,
    "s": 71.875,
    "l": 12.549
  },
  "oklch": {
    "l": 0.23594,
    "c": 0.09153,
    "h": 322.1
  },
  "luminance": 0.01124
}

Semantic roles & 50–950 ramp

primary
#310937
secondary
#317527
accent
#EF3951
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #310937

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

Preview Lab → · Contrast checker → · Palette generator →

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