#31102E#31102E

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

Color values

HEX#31102E
RGBrgb(49, 16, 46)
HSLhsl(305, 51%, 13%)
HSVhsv(305, 67%, 19%)
CMYKcmyk(0%, 67.3%, 6.1%, 80.8%)
CIE-LABlab(10.71, 21.63, -12.39)
CIE-LCHlch(10.71, 24.93, 330.19°)
OKLaboklab(23.93% 0.0615 -0.0339)
OKLCHoklch(23.93% 0.07 331.1)
XYZxyz(1.9450, 1.2209, 2.7175)
Luminance0.0122 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31102E #103113
analogous
#231031 #31102E #31101D
triadic
#31102E #2E3110 #102E31
tetradic
#31102E #312310 #103113 #101D31
square
#31102E #312310 #103113 #101D31
split-complementary
#31102E #1D3110 #103123
monochromatic
#170816 #170816 #31102E #5F1F59 #8D2E85

Accessibility & contrast

On white

16.88
#31102E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31102E
16.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31102E#FFFFFF#000000##FFFFFF
##31102E1.0016.881.2416.88
#FFFFFF16.881.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1A2F
Deuteranopia (green-blind)
#191F2D
Tritanopia (blue-blind)
#33131D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #31102e;
/* rgb */ color: rgb(49, 16, 46);
/* oklch */ color: oklch(23.9% 0.070 331.1);
Tailwind
colors: {
  custom: {
    50: '#6a5066',
    500: '#31102e',
    950: '#000000',
  },
}
SCSS
$custom: #31102e;
$custom-light: #6a5066;
$custom-dark: #000000;
JSON
{
  "hex": "#31102e",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 46
  },
  "hsl": {
    "h": 305.455,
    "s": 50.769,
    "l": 12.745
  },
  "oklch": {
    "l": 0.23928,
    "c": 0.07024,
    "h": 331.1
  },
  "luminance": 0.01221
}

Semantic roles & 50–950 ramp

primary
#31102E
secondary
#336A38
accent
#DA5A4E
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060206
muted
#7A787A

Preview Lab

Preview with #31102E

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

Preview Lab → · Contrast checker → · Palette generator →

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