#310D32#310D32

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

Color values

HEX#310D32
RGBrgb(49, 13, 50)
HSLhsl(298, 59%, 12%)
HSVhsv(298, 74%, 20%)
CMYKcmyk(2%, 74%, 0%, 80.4%)
CIE-LABlab(10.34, 24.17, -15.90)
CIE-LCHlch(10.34, 28.93, 326.66°)
OKLaboklab(23.74% 0.0668 -0.044)
OKLCHoklch(23.74% 0.08 326.6)
XYZxyz(1.9862, 1.1712, 3.1384)
Luminance0.0117 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D32 #0E320D
analogous
#1E0D32 #310D32 #320D21
triadic
#310D32 #32310D #0D3231
tetradic
#310D32 #321E0D #0E320D #0D2132
square
#310D32 #321E0D #0E320D #0D2132
split-complementary
#310D32 #21320D #0D321E
monochromatic
#180618 #180618 #310D32 #611A63 #902693

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##310D32#FFFFFF#000000##FFFFFF
##310D321.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)
#081933
Deuteranopia (green-blind)
#151E31
Tritanopia (blue-blind)
#33121D
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #310d32;
/* rgb */ color: rgb(49, 13, 50);
/* oklch */ color: oklch(23.7% 0.080 326.6);
Tailwind
colors: {
  custom: {
    50: '#6b4f6a',
    500: '#310d32',
    950: '#000000',
  },
}
SCSS
$custom: #310d32;
$custom-light: #6b4f6a;
$custom-dark: #000000;
JSON
{
  "hex": "#310d32",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 50
  },
  "hsl": {
    "h": 298.378,
    "s": 58.73,
    "l": 12.353
  },
  "oklch": {
    "l": 0.23739,
    "c": 0.07998,
    "h": 326.6
  },
  "luminance": 0.01171
}

Semantic roles & 50–950 ramp

primary
#310D32
secondary
#2F6D2E
accent
#E2464A
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #310D32

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

Preview Lab → · Contrast checker → · Palette generator →

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