#31082C#31082C

#31082C is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.7% C 0.082 H 333.3°. Best body text is #FFFFFF at 17.48:1 contrast (WCAG AA passes).

Color values

HEX#31082C
RGBrgb(49, 8, 44)
HSLhsl(307, 72%, 11%)
HSVhsv(307, 84%, 19%)
CMYKcmyk(0%, 83.7%, 10.2%, 80.8%)
CIE-LABlab(9.06, 25.44, -13.49)
CIE-LCHlch(9.06, 28.80, 332.06°)
OKLaboklab(22.69% 0.0735 -0.037)
OKLCHoklch(22.69% 0.082 333.3)
XYZxyz(1.8081, 1.0086, 2.4818)
Luminance0.0101 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31082C #08310D
analogous
#210831 #31082C #310817
triadic
#31082C #2C3108 #082C31
tetradic
#31082C #312108 #08310D #081731
square
#31082C #312108 #08310D #081731
split-complementary
#31082C #173108 #083121
monochromatic
#1A0418 #1A0418 #31082C #66115B #9A198A

Accessibility & contrast

On white

17.48
#31082C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#31082C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31082C
17.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31082C#FFFFFF#000000##FFFFFF
##31082C1.0017.481.2017.48
#FFFFFF17.481.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07162D
Deuteranopia (green-blind)
#151C2B
Tritanopia (blue-blind)
#340C19
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #31082c;
/* rgb */ color: rgb(49, 8, 44);
/* oklch */ color: oklch(22.7% 0.082 333.3);
Tailwind
colors: {
  custom: {
    50: '#6b4c65',
    500: '#31082c',
    950: '#000000',
  },
}
SCSS
$custom: #31082c;
$custom-light: #6b4c65;
$custom-dark: #000000;
JSON
{
  "hex": "#31082c",
  "rgb": {
    "r": 49,
    "g": 8,
    "b": 44
  },
  "hsl": {
    "h": 307.317,
    "s": 71.93,
    "l": 11.176
  },
  "oklch": {
    "l": 0.22689,
    "c": 0.08226,
    "h": 333.3
  },
  "luminance": 0.01008
}

Semantic roles & 50–950 ramp

primary
#31082C
secondary
#25702E
accent
#EF4F39
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070105
muted
#7A777A

Preview Lab

Preview with #31082C

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

Preview Lab → · Contrast checker → · Palette generator →

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