#310B37#310B37

#310B37 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.8% C 0.089 H 321.9°. Best body text is #FFFFFF at 17.02:1 contrast (WCAG AA passes).

Color values

HEX#310B37
RGBrgb(49, 11, 55)
HSLhsl(292, 67%, 13%)
HSVhsv(292, 80%, 22%)
CMYKcmyk(10.9%, 80%, 0%, 78.4%)
CIE-LABlab(10.32, 26.31, -19.57)
CIE-LCHlch(10.32, 32.79, 323.35°)
OKLaboklab(23.83% 0.0697 -0.0546)
OKLCHoklch(23.83% 0.089 321.9)
XYZxyz(2.0758, 1.1683, 3.7298)
Luminance0.0117 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B37 #11370B
analogous
#1B0B37 #310B37 #370B27
triadic
#310B37 #37310B #0B3731
tetradic
#310B37 #371B0B #11370B #0B2737
square
#310B37 #371B0B #11370B #0B2737
split-complementary
#310B37 #27370B #0B371B
monochromatic
#17051A #17051A #310B37 #5E156A #8C1F9D

Accessibility & contrast

On white

17.02
#310B37 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#310B37 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310B37
17.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B37#FFFFFF#000000##FFFFFF
##310B371.0017.021.2317.02
#FFFFFF17.021.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011938
Deuteranopia (green-blind)
#111E36
Tritanopia (blue-blind)
#32131F
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #310b37;
/* rgb */ color: rgb(49, 11, 55);
/* oklch */ color: oklch(23.8% 0.089 321.9);
Tailwind
colors: {
  custom: {
    50: '#6b4e6e',
    500: '#310b37',
    950: '#000000',
  },
}
SCSS
$custom: #310b37;
$custom-light: #6b4e6e;
$custom-dark: #000000;
JSON
{
  "hex": "#310b37",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 55
  },
  "hsl": {
    "h": 291.818,
    "s": 66.667,
    "l": 12.941
  },
  "oklch": {
    "l": 0.23833,
    "c": 0.08857,
    "h": 321.9
  },
  "luminance": 0.01168
}

Semantic roles & 50–950 ramp

primary
#310B37
secondary
#34742A
accent
#EA3E56
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #310B37

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

Preview Lab → · Contrast checker → · Palette generator →

#310B37 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva