#31082F#31082F

#31082F is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.9% C 0.085 H 330.0°. Best body text is #FFFFFF at 17.41:1 contrast (WCAG AA passes).

Color values

HEX#31082F
RGBrgb(49, 8, 47)
HSLhsl(303, 72%, 11%)
HSVhsv(303, 84%, 19%)
CMYKcmyk(0%, 83.7%, 4.1%, 80.8%)
CIE-LABlab(9.26, 26.04, -15.42)
CIE-LCHlch(9.26, 30.26, 329.37°)
OKLaboklab(22.89% 0.0737 -0.0425)
OKLCHoklch(22.89% 0.085 330)
XYZxyz(1.8665, 1.0320, 2.7897)
Luminance0.0103 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31082F #08310A
analogous
#1E0831 #31082F #31081A
triadic
#31082F #2F3108 #082F31
tetradic
#31082F #311E08 #08310A #081A31
square
#31082F #311E08 #08310A #081A31
split-complementary
#31082F #1A3108 #08311E
monochromatic
#1A0419 #1A0419 #31082F #661161 #9A1994

Accessibility & contrast

On white

17.41
#31082F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#31082F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31082F
17.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31082F#FFFFFF#000000##FFFFFF
##31082F1.0017.411.2117.41
#FFFFFF17.411.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051630
Deuteranopia (green-blind)
#141C2E
Tritanopia (blue-blind)
#330D1A
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #31082f;
/* rgb */ color: rgb(49, 8, 47);
/* oklch */ color: oklch(22.9% 0.085 330.0);
Tailwind
colors: {
  custom: {
    50: '#6b4c67',
    500: '#31082f',
    950: '#000000',
  },
}
SCSS
$custom: #31082f;
$custom-light: #6b4c67;
$custom-dark: #000000;
JSON
{
  "hex": "#31082f",
  "rgb": {
    "r": 49,
    "g": 8,
    "b": 47
  },
  "hsl": {
    "h": 302.927,
    "s": 71.93,
    "l": 11.176
  },
  "oklch": {
    "l": 0.2289,
    "c": 0.08509,
    "h": 330
  },
  "luminance": 0.01032
}

Semantic roles & 50–950 ramp

primary
#31082F
secondary
#257029
accent
#EF4239
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #31082F

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

Preview Lab → · Contrast checker → · Palette generator →

#31082F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva