#31103C#31103C

#31103C is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.9% C 0.086 H 316.7°. Best body text is #FFFFFF at 16.54:1 contrast (WCAG AA passes).

Color values

HEX#31103C
RGBrgb(49, 16, 60)
HSLhsl(285, 58%, 15%)
HSVhsv(285, 73%, 24%)
CMYKcmyk(18.3%, 73.3%, 0%, 76.5%)
CIE-LABlab(11.62, 24.88, -21.09)
CIE-LCHlch(11.62, 32.62, 319.72°)
OKLaboklab(24.89% 0.0627 -0.0591)
OKLCHoklch(24.89% 0.086 316.7)
XYZxyz(2.2674, 1.3499, 4.4152)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31103C #1B3C10
analogous
#1B103C #31103C #3C1031
triadic
#31103C #3C3110 #103C31
tetradic
#31103C #3C1B10 #1B3C10 #10313C
square
#31103C #3C1B10 #1B3C10 #10313C
split-complementary
#31103C #313C10 #103C1B
monochromatic
#140618 #140618 #31103C #581D6C #802A9D

Accessibility & contrast

On white

16.54
#31103C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#31103C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31103C
16.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31103C#FFFFFF#000000##FFFFFF
##31103C1.0016.541.2716.54
#FFFFFF16.541.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031D3D
Deuteranopia (green-blind)
#11203B
Tritanopia (blue-blind)
#301824
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #31103c;
/* rgb */ color: rgb(49, 16, 60);
/* oklch */ color: oklch(24.9% 0.086 316.7);
Tailwind
colors: {
  custom: {
    50: '#6b5172',
    500: '#31103c',
    950: '#000000',
  },
}
SCSS
$custom: #31103c;
$custom-light: #6b5172;
$custom-dark: #000000;
JSON
{
  "hex": "#31103c",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 60
  },
  "hsl": {
    "h": 285,
    "s": 57.895,
    "l": 14.902
  },
  "oklch": {
    "l": 0.24885,
    "c": 0.08614,
    "h": 316.7
  },
  "luminance": 0.0135
}

Semantic roles & 50–950 ramp

primary
#31103C
secondary
#437632
accent
#E1476D
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070208
muted
#7A787B

Preview Lab

Preview with #31103C

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

Preview Lab → · Contrast checker → · Palette generator →

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