#31082E#31082E

#31082E is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.8% C 0.084 H 331.1°. Best body text is #FFFFFF at 17.43:1 contrast (WCAG AA passes).

Color values

HEX#31082E
RGBrgb(49, 8, 46)
HSLhsl(304, 72%, 11%)
HSVhsv(304, 84%, 19%)
CMYKcmyk(0%, 83.7%, 6.1%, 80.8%)
CIE-LABlab(9.19, 25.84, -14.78)
CIE-LCHlch(9.19, 29.77, 330.23°)
OKLaboklab(22.82% 0.0736 -0.0407)
OKLCHoklch(22.82% 0.084 331.1)
XYZxyz(1.8466, 1.0240, 2.6846)
Luminance0.0102 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31082E #08310B
analogous
#1F0831 #31082E #310819
triadic
#31082E #2E3108 #082E31
tetradic
#31082E #311F08 #08310B #081931
square
#31082E #311F08 #08310B #081931
split-complementary
#31082E #193108 #08311F
monochromatic
#1A0419 #1A0419 #31082E #66115F #9A1991

Accessibility & contrast

On white

17.43
#31082E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31082E
17.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31082E#FFFFFF#000000##FFFFFF
##31082E1.0017.431.2017.43
#FFFFFF17.431.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05162F
Deuteranopia (green-blind)
#141C2D
Tritanopia (blue-blind)
#330D1A
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #31082e;
/* rgb */ color: rgb(49, 8, 46);
/* oklch */ color: oklch(22.8% 0.084 331.1);
Tailwind
colors: {
  custom: {
    50: '#6b4c67',
    500: '#31082e',
    950: '#000000',
  },
}
SCSS
$custom: #31082e;
$custom-light: #6b4c67;
$custom-dark: #000000;
JSON
{
  "hex": "#31082e",
  "rgb": {
    "r": 49,
    "g": 8,
    "b": 46
  },
  "hsl": {
    "h": 304.39,
    "s": 71.93,
    "l": 11.176
  },
  "oklch": {
    "l": 0.22822,
    "c": 0.08414,
    "h": 331.1
  },
  "luminance": 0.01024
}

Semantic roles & 50–950 ramp

primary
#31082E
secondary
#25702A
accent
#EF4639
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #31082E

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

Preview Lab → · Contrast checker → · Palette generator →

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