#310B3B#310B3B

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

Color values

HEX#310B3B
RGBrgb(49, 11, 59)
HSLhsl(288, 69%, 14%)
HSVhsv(288, 81%, 23%)
CMYKcmyk(16.9%, 81.4%, 0%, 76.9%)
CIE-LABlab(10.62, 27.23, -21.98)
CIE-LCHlch(10.62, 35.00, 321.09°)
OKLaboklab(24.14% 0.0695 -0.0617)
OKLCHoklch(24.14% 0.093 318.4)
XYZxyz(2.1756, 1.2082, 4.2554)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B3B #153B0B
analogous
#190B3B #310B3B #3B0B2D
triadic
#310B3B #3B310B #0B3B31
tetradic
#310B3B #3B190B #153B0B #0B2D3B
square
#310B3B #3B190B #153B0B #0B2D3B
split-complementary
#310B3B #2D3B0B #0B3B19
monochromatic
#15051A #15051A #310B3B #5C156F #871EA2

Accessibility & contrast

On white

16.91
#310B3B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310B3B
16.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B3B#FFFFFF#000000##FFFFFF
##310B3B1.0016.911.2416.91
#FFFFFF16.911.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3C
Deuteranopia (green-blind)
#0D1E3A
Tritanopia (blue-blind)
#311422
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #310b3b;
/* rgb */ color: rgb(49, 11, 59);
/* oklch */ color: oklch(24.1% 0.093 318.4);
Tailwind
colors: {
  custom: {
    50: '#6b4e71',
    500: '#310b3b',
    950: '#000000',
  },
}
SCSS
$custom: #310b3b;
$custom-light: #6b4e71;
$custom-dark: #000000;
JSON
{
  "hex": "#310b3b",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 59
  },
  "hsl": {
    "h": 287.5,
    "s": 68.571,
    "l": 13.725
  },
  "oklch": {
    "l": 0.24141,
    "c": 0.0929,
    "h": 318.4
  },
  "luminance": 0.01208
}

Semantic roles & 50–950 ramp

primary
#310B3B
secondary
#3A782A
accent
#EB3C61
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #310B3B

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

Preview Lab → · Contrast checker → · Palette generator →

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