#31102F#31102F

#31102F is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.0% C 0.071 H 329.9°. Best body text is #FFFFFF at 16.86:1 contrast (WCAG AA passes).

Color values

HEX#31102F
RGBrgb(49, 16, 47)
HSLhsl(304, 51%, 13%)
HSVhsv(304, 67%, 19%)
CMYKcmyk(0%, 67.3%, 4.1%, 80.8%)
CIE-LABlab(10.77, 21.85, -13.04)
CIE-LCHlch(10.77, 25.44, 329.17°)
OKLaboklab(23.99% 0.0617 -0.0357)
OKLCHoklch(23.99% 0.071 329.9)
XYZxyz(1.9650, 1.2289, 2.8225)
Luminance0.0123 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31102F #103112
analogous
#221031 #31102F #31101E
triadic
#31102F #2F3110 #102F31
tetradic
#31102F #312210 #103112 #101E31
square
#31102F #312210 #103112 #101E31
split-complementary
#31102F #1E3110 #103122
monochromatic
#170816 #170816 #31102F #5F1F5B #8D2E88

Accessibility & contrast

On white

16.86
#31102F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#31102F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31102F
16.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31102F#FFFFFF#000000##FFFFFF
##31102F1.0016.861.2516.86
#FFFFFF16.861.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1A30
Deuteranopia (green-blind)
#181F2E
Tritanopia (blue-blind)
#33131D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #31102f;
/* rgb */ color: rgb(49, 16, 47);
/* oklch */ color: oklch(24.0% 0.071 329.9);
Tailwind
colors: {
  custom: {
    50: '#6a5067',
    500: '#31102f',
    950: '#000000',
  },
}
SCSS
$custom: #31102f;
$custom-light: #6a5067;
$custom-dark: #000000;
JSON
{
  "hex": "#31102f",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 47
  },
  "hsl": {
    "h": 303.636,
    "s": 50.769,
    "l": 12.745
  },
  "oklch": {
    "l": 0.23989,
    "c": 0.07131,
    "h": 329.9
  },
  "luminance": 0.01229
}

Semantic roles & 50–950 ramp

primary
#31102F
secondary
#336A36
accent
#DA564E
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060206
muted
#7A787A

Preview Lab

Preview with #31102F

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

Preview Lab → · Contrast checker → · Palette generator →

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