#31032F#31032F

#31032F is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.2% C 0.094 H 330.1°. Best body text is #FFFFFF at 17.73:1 contrast (WCAG AA passes).

Color values

HEX#31032F
RGBrgb(49, 3, 47)
HSLhsl(303, 88%, 10%)
HSVhsv(303, 94%, 19%)
CMYKcmyk(0%, 93.9%, 4.1%, 80.8%)
CIE-LABlab(8.34, 28.68, -16.87)
CIE-LCHlch(8.34, 33.27, 329.53°)
OKLaboklab(22.23% 0.0813 -0.0467)
OKLCHoklch(22.23% 0.094 330.1)
XYZxyz(1.8123, 0.9235, 2.7716)
Luminance0.0092 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31032F #033105
analogous
#1C0331 #31032F #310318
triadic
#31032F #2F3103 #032F31
tetradic
#31032F #311C03 #033105 #031831
square
#31032F #311C03 #033105 #031831
split-complementary
#31032F #183103 #03311C
monochromatic
#1D021C #1D021C #31032F #6B0766 #A40A9E

Accessibility & contrast

On white

17.73
#31032F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#31032F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31032F
17.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31032F#FFFFFF#000000##FFFFFF
##31032F1.0017.731.1817.73
#FFFFFF17.731.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001430
Deuteranopia (green-blind)
#111A2E
Tritanopia (blue-blind)
#330918
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #31032f;
/* rgb */ color: rgb(49, 3, 47);
/* oklch */ color: oklch(22.2% 0.094 330.1);
Tailwind
colors: {
  custom: {
    50: '#6b4967',
    500: '#31032f',
    950: '#000000',
  },
}
SCSS
$custom: #31032f;
$custom-light: #6b4967;
$custom-dark: #000000;
JSON
{
  "hex": "#31032f",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 47
  },
  "hsl": {
    "h": 302.609,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.22233,
    "c": 0.09373,
    "h": 330.1
  },
  "luminance": 0.00923
}

Semantic roles & 50–950 ramp

primary
#31032F
secondary
#1B741F
accent
#FF3229
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #31032F

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

Preview Lab → · Contrast checker → · Palette generator →

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