#31102D#31102D

#31102D is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.9% C 0.069 H 332.4°. Best body text is #FFFFFF at 16.90:1 contrast (WCAG AA passes).

Color values

HEX#31102D
RGBrgb(49, 16, 45)
HSLhsl(307, 51%, 13%)
HSVhsv(307, 67%, 19%)
CMYKcmyk(0%, 67.3%, 8.2%, 80.8%)
CIE-LABlab(10.65, 21.42, -11.75)
CIE-LCHlch(10.65, 24.43, 331.26°)
OKLaboklab(23.87% 0.0613 -0.0321)
OKLCHoklch(23.87% 0.069 332.4)
XYZxyz(1.9256, 1.2131, 2.6149)
Luminance0.0121 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31102D #103114
analogous
#241031 #31102D #31101C
triadic
#31102D #2D3110 #102D31
tetradic
#31102D #312410 #103114 #101C31
square
#31102D #312410 #103114 #101C31
split-complementary
#31102D #1C3110 #103124
monochromatic
#170815 #170815 #31102D #5F1F57 #8D2E82

Accessibility & contrast

On white

16.90
#31102D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#31102D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31102D
16.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31102D#FFFFFF#000000##FFFFFF
##31102D1.0016.901.2416.90
#FFFFFF16.901.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F1A2E
Deuteranopia (green-blind)
#191E2C
Tritanopia (blue-blind)
#33131C
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #31102d;
/* rgb */ color: rgb(49, 16, 45);
/* oklch */ color: oklch(23.9% 0.069 332.4);
Tailwind
colors: {
  custom: {
    50: '#6a5066',
    500: '#31102d',
    950: '#000000',
  },
}
SCSS
$custom: #31102d;
$custom-light: #6a5066;
$custom-dark: #000000;
JSON
{
  "hex": "#31102d",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 45
  },
  "hsl": {
    "h": 307.273,
    "s": 50.769,
    "l": 12.745
  },
  "oklch": {
    "l": 0.23867,
    "c": 0.0692,
    "h": 332.4
  },
  "luminance": 0.01213
}

Semantic roles & 50–950 ramp

primary
#31102D
secondary
#336A39
accent
#DA5F4E
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060205
muted
#7A787A

Preview Lab

Preview with #31102D

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

Preview Lab → · Contrast checker → · Palette generator →

#31102D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva