#31042F#31042F

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

Color values

HEX#31042F
RGBrgb(49, 4, 47)
HSLhsl(303, 85%, 10%)
HSVhsv(303, 92%, 19%)
CMYKcmyk(0%, 91.8%, 4.1%, 80.8%)
CIE-LABlab(8.53, 28.13, -16.57)
CIE-LCHlch(8.53, 32.64, 329.49°)
OKLaboklab(22.37% 0.0797 -0.0458)
OKLCHoklch(22.37% 0.092 330.1)
XYZxyz(1.8231, 0.9452, 2.7752)
Luminance0.0095 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31042F #043106
analogous
#1C0431 #31042F #310418
triadic
#31042F #2F3104 #042F31
tetradic
#31042F #311C04 #043106 #041831
square
#31042F #311C04 #043106 #041831
split-complementary
#31042F #183104 #04311C
monochromatic
#1C021B #1C021B #31042F #6A0965 #A20D9C

Accessibility & contrast

On white

17.66
#31042F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#31042F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31042F
17.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31042F#FFFFFF#000000##FFFFFF
##31042F1.0017.661.1917.66
#FFFFFF17.661.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001530
Deuteranopia (green-blind)
#121B2E
Tritanopia (blue-blind)
#330A19
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #31042f;
/* rgb */ color: rgb(49, 4, 47);
/* oklch */ color: oklch(22.4% 0.092 330.1);
Tailwind
colors: {
  custom: {
    50: '#6b4a67',
    500: '#31042f',
    950: '#000000',
  },
}
SCSS
$custom: #31042f;
$custom-light: #6b4a67;
$custom-dark: #000000;
JSON
{
  "hex": "#31042f",
  "rgb": {
    "r": 49,
    "g": 4,
    "b": 47
  },
  "hsl": {
    "h": 302.667,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.22368,
    "c": 0.09193,
    "h": 330.1
  },
  "luminance": 0.00945
}

Semantic roles & 50–950 ramp

primary
#31042F
secondary
#1D7321
accent
#FB362D
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #31042F

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

Preview Lab → · Contrast checker → · Palette generator →

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