#310D3B#310D3B

#310D3B is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.4% C 0.090 H 318.1°. Best body text is #FFFFFF at 16.78:1 contrast (WCAG AA passes).

Color values

HEX#310D3B
RGBrgb(49, 13, 59)
HSLhsl(287, 64%, 14%)
HSVhsv(287, 78%, 23%)
CMYKcmyk(16.9%, 78%, 0%, 76.9%)
CIE-LABlab(10.97, 26.25, -21.42)
CIE-LCHlch(10.97, 33.87, 320.79°)
OKLaboklab(24.39% 0.0669 -0.06)
OKLCHoklch(24.39% 0.09 318.1)
XYZxyz(2.1999, 1.2567, 4.2635)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D3B #173B0D
analogous
#1A0D3B #310D3B #3B0D2E
triadic
#310D3B #3B310D #0D3B31
tetradic
#310D3B #3B1A0D #173B0D #0D2E3B
square
#310D3B #3B1A0D #173B0D #0D2E3B
split-complementary
#310D3B #2E3B0D #0D3B1A
monochromatic
#150619 #150619 #310D3B #5B186D #84239F

Accessibility & contrast

On white

16.78
#310D3B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#310D3B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310D3B
16.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D3B#FFFFFF#000000##FFFFFF
##310D3B1.0016.781.2516.78
#FFFFFF16.781.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3C
Deuteranopia (green-blind)
#0F1F3A
Tritanopia (blue-blind)
#311622
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #310d3b;
/* rgb */ color: rgb(49, 13, 59);
/* oklch */ color: oklch(24.4% 0.090 318.1);
Tailwind
colors: {
  custom: {
    50: '#6b4f71',
    500: '#310d3b',
    950: '#000000',
  },
}
SCSS
$custom: #310d3b;
$custom-light: #6b4f71;
$custom-dark: #000000;
JSON
{
  "hex": "#310d3b",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 59
  },
  "hsl": {
    "h": 286.957,
    "s": 63.889,
    "l": 14.118
  },
  "oklch": {
    "l": 0.24392,
    "c": 0.08988,
    "h": 318.1
  },
  "luminance": 0.01257
}

Semantic roles & 50–950 ramp

primary
#310D3B
secondary
#3D772D
accent
#E74165
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #310D3B

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

Preview Lab → · Contrast checker → · Palette generator →

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