#31102C#31102C

#31102C is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.8% C 0.068 H 333.7°. Best body text is #FFFFFF at 16.92:1 contrast (WCAG AA passes).

Color values

HEX#31102C
RGBrgb(49, 16, 44)
HSLhsl(309, 51%, 13%)
HSVhsv(309, 67%, 19%)
CMYKcmyk(0%, 67.3%, 10.2%, 80.8%)
CIE-LABlab(10.60, 21.21, -11.10)
CIE-LCHlch(10.60, 23.94, 332.38°)
OKLaboklab(23.81% 0.0611 -0.0302)
OKLCHoklch(23.81% 0.068 333.7)
XYZxyz(1.9065, 1.2055, 2.5147)
Luminance0.0120 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31102C #103115
analogous
#251031 #31102C #31101B
triadic
#31102C #2C3110 #102C31
tetradic
#31102C #312510 #103115 #101B31
square
#31102C #312510 #103115 #101B31
split-complementary
#31102C #1B3110 #103125
monochromatic
#170815 #170815 #31102C #5F1F55 #8D2E7F

Accessibility & contrast

On white

16.92
#31102C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31102C
16.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31102C#FFFFFF#000000##FFFFFF
##31102C1.0016.921.2416.92
#FFFFFF16.921.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F1A2D
Deuteranopia (green-blind)
#191E2B
Tritanopia (blue-blind)
#33121C
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #31102c;
/* rgb */ color: rgb(49, 16, 44);
/* oklch */ color: oklch(23.8% 0.068 333.7);
Tailwind
colors: {
  custom: {
    50: '#6a5065',
    500: '#31102c',
    950: '#000000',
  },
}
SCSS
$custom: #31102c;
$custom-light: #6a5065;
$custom-dark: #000000;
JSON
{
  "hex": "#31102c",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 44
  },
  "hsl": {
    "h": 309.091,
    "s": 50.769,
    "l": 12.745
  },
  "oklch": {
    "l": 0.23808,
    "c": 0.06817,
    "h": 333.7
  },
  "luminance": 0.01205
}

Semantic roles & 50–950 ramp

primary
#31102C
secondary
#336A3B
accent
#DA634E
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060205
muted
#7A787A

Preview Lab

Preview with #31102C

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

Preview Lab → · Contrast checker → · Palette generator →

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