#310B3A#310B3A

#310B3A is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.1% C 0.092 H 319.3°. Best body text is #FFFFFF at 16.94:1 contrast (WCAG AA passes).

Color values

HEX#310B3A
RGBrgb(49, 11, 58)
HSLhsl(289, 68%, 14%)
HSVhsv(289, 81%, 23%)
CMYKcmyk(15.5%, 81%, 0%, 77.3%)
CIE-LABlab(10.54, 27.00, -21.38)
CIE-LCHlch(10.54, 34.44, 321.62°)
OKLaboklab(24.06% 0.0696 -0.0599)
OKLCHoklch(24.06% 0.092 319.3)
XYZxyz(2.1499, 1.1979, 4.1201)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B3A #143A0B
analogous
#190B3A #310B3A #3A0B2B
triadic
#310B3A #3A310B #0B3A31
tetradic
#310B3A #3A190B #143A0B #0B2B3A
square
#310B3A #3A190B #143A0B #0B2B3A
split-complementary
#310B3A #2B3A0B #0B3A19
monochromatic
#16051A #16051A #310B3A #5C156D #881FA1

Accessibility & contrast

On white

16.94
#310B3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310B3A
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B3A#FFFFFF#000000##FFFFFF
##310B3A1.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3B
Deuteranopia (green-blind)
#0E1E39
Tritanopia (blue-blind)
#311421
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #310b3a;
/* rgb */ color: rgb(49, 11, 58);
/* oklch */ color: oklch(24.1% 0.092 319.3);
Tailwind
colors: {
  custom: {
    50: '#6b4e70',
    500: '#310b3a',
    950: '#000000',
  },
}
SCSS
$custom: #310b3a;
$custom-light: #6b4e70;
$custom-dark: #000000;
JSON
{
  "hex": "#310b3a",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 58
  },
  "hsl": {
    "h": 288.511,
    "s": 68.116,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24062,
    "c": 0.09181,
    "h": 319.3
  },
  "luminance": 0.01198
}

Semantic roles & 50–950 ramp

primary
#310B3A
secondary
#39772A
accent
#EB3D5E
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #310B3A

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

Preview Lab → · Contrast checker → · Palette generator →

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