#310D3F#310D3F

#310D3F is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.7% C 0.094 H 314.8°. Best body text is #FFFFFF at 16.67:1 contrast (WCAG AA passes).

Color values

HEX#310D3F
RGBrgb(49, 13, 63)
HSLhsl(283, 66%, 15%)
HSVhsv(283, 79%, 25%)
CMYKcmyk(22.2%, 79.4%, 0%, 75.3%)
CIE-LABlab(11.27, 27.22, -23.78)
CIE-LCHlch(11.27, 36.14, 318.86°)
OKLaboklab(24.71% 0.0666 -0.067)
OKLCHoklch(24.71% 0.094 314.8)
XYZxyz(2.3076, 1.2998, 4.8310)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D3F #1B3F0D
analogous
#180D3F #310D3F #3F0D34
triadic
#310D3F #3F310D #0D3F31
tetradic
#310D3F #3F180D #1B3F0D #0D343F
square
#310D3F #3F180D #1B3F0D #0D343F
split-complementary
#310D3F #343F0D #0D3F18
monochromatic
#140519 #140519 #310D3F #581772 #8022A4

Accessibility & contrast

On white

16.67
#310D3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#310D3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310D3F
16.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D3F#FFFFFF#000000##FFFFFF
##310D3F1.0016.671.2616.67
#FFFFFF16.671.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C40
Deuteranopia (green-blind)
#0B1F3E
Tritanopia (blue-blind)
#301724
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #310d3f;
/* rgb */ color: rgb(49, 13, 63);
/* oklch */ color: oklch(24.7% 0.094 314.8);
Tailwind
colors: {
  custom: {
    50: '#6b4f74',
    500: '#310d3f',
    950: '#000000',
  },
}
SCSS
$custom: #310d3f;
$custom-light: #6b4f74;
$custom-dark: #000000;
JSON
{
  "hex": "#310d3f",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 63
  },
  "hsl": {
    "h": 283.2,
    "s": 65.789,
    "l": 14.902
  },
  "oklch": {
    "l": 0.24708,
    "c": 0.09441,
    "h": 314.8
  },
  "luminance": 0.013
}

Semantic roles & 50–950 ramp

primary
#310D3F
secondary
#437B2D
accent
#E93F6F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #310D3F

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

Preview Lab → · Contrast checker → · Palette generator →

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