#31082B#31082B

#31082B is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.6% C 0.081 H 334.4°. Best body text is #FFFFFF at 17.50:1 contrast (WCAG AA passes).

Color values

HEX#31082B
RGBrgb(49, 8, 43)
HSLhsl(309, 72%, 11%)
HSVhsv(309, 84%, 19%)
CMYKcmyk(0%, 83.7%, 12.2%, 80.8%)
CIE-LABlab(9.00, 25.25, -12.85)
CIE-LCHlch(9.00, 28.33, 333.04°)
OKLaboklab(22.62% 0.0734 -0.0351)
OKLCHoklch(22.62% 0.081 334.4)
XYZxyz(1.7895, 1.0012, 2.3840)
Luminance0.0100 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31082B #08310E
analogous
#220831 #31082B #310816
triadic
#31082B #2B3108 #082B31
tetradic
#31082B #312208 #08310E #081631
square
#31082B #312208 #08310E #081631
split-complementary
#31082B #163108 #083122
monochromatic
#1A0417 #1A0417 #31082B #661159 #9A1987

Accessibility & contrast

On white

17.50
#31082B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31082B
17.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31082B#FFFFFF#000000##FFFFFF
##31082B1.0017.501.2017.50
#FFFFFF17.501.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08162C
Deuteranopia (green-blind)
#161C2A
Tritanopia (blue-blind)
#340B18
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #31082b;
/* rgb */ color: rgb(49, 8, 43);
/* oklch */ color: oklch(22.6% 0.081 334.4);
Tailwind
colors: {
  custom: {
    50: '#6b4c64',
    500: '#31082b',
    950: '#000000',
  },
}
SCSS
$custom: #31082b;
$custom-light: #6b4c64;
$custom-dark: #000000;
JSON
{
  "hex": "#31082b",
  "rgb": {
    "r": 49,
    "g": 8,
    "b": 43
  },
  "hsl": {
    "h": 308.78,
    "s": 71.93,
    "l": 11.176
  },
  "oklch": {
    "l": 0.22624,
    "c": 0.08134,
    "h": 334.4
  },
  "luminance": 0.01001
}

Semantic roles & 50–950 ramp

primary
#31082B
secondary
#257030
accent
#EF5439
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070105
muted
#7A777A

Preview Lab

Preview with #31082B

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

Preview Lab → · Contrast checker → · Palette generator →

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