#310D36#310D36

#310D36 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.0% C 0.084 H 322.6°. Best body text is #FFFFFF at 16.92:1 contrast (WCAG AA passes).

Color values

HEX#310D36
RGBrgb(49, 13, 54)
HSLhsl(293, 61%, 13%)
HSVhsv(293, 76%, 21%)
CMYKcmyk(9.3%, 75.9%, 0%, 78.8%)
CIE-LABlab(10.61, 25.07, -18.39)
CIE-LCHlch(10.61, 31.09, 323.74°)
OKLaboklab(24.02% 0.067 -0.0512)
OKLCHoklch(24.02% 0.084 322.6)
XYZxyz(2.0763, 1.2073, 3.6130)
Luminance0.0121 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D36 #12360D
analogous
#1C0D36 #310D36 #360D26
triadic
#310D36 #36310D #0D3631
tetradic
#310D36 #361C0D #12360D #0D2636
square
#310D36 #361C0D #12360D #0D2636
split-complementary
#310D36 #26360D #0D361C
monochromatic
#160619 #160619 #310D36 #5E1967 #8B2599

Accessibility & contrast

On white

16.92
#310D36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#310D36 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310D36
16.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D36#FFFFFF#000000##FFFFFF
##310D361.0016.921.2416.92
#FFFFFF16.921.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041A37
Deuteranopia (green-blind)
#131E35
Tritanopia (blue-blind)
#321420
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #310d36;
/* rgb */ color: rgb(49, 13, 54);
/* oklch */ color: oklch(24.0% 0.084 322.6);
Tailwind
colors: {
  custom: {
    50: '#6b4f6d',
    500: '#310d36',
    950: '#000000',
  },
}
SCSS
$custom: #310d36;
$custom-light: #6b4f6d;
$custom-dark: #000000;
JSON
{
  "hex": "#310d36",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 54
  },
  "hsl": {
    "h": 292.683,
    "s": 61.194,
    "l": 13.137
  },
  "oklch": {
    "l": 0.24019,
    "c": 0.08431,
    "h": 322.6
  },
  "luminance": 0.01207
}

Semantic roles & 50–950 ramp

primary
#310D36
secondary
#36712D
accent
#E44357
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070207
muted
#7A787A

Preview Lab

Preview with #310D36

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

Preview Lab → · Contrast checker → · Palette generator →

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