#31103B#31103B

#31103B is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.8% C 0.085 H 317.5°. Best body text is #FFFFFF at 16.56:1 contrast (WCAG AA passes).

Color values

HEX#31103B
RGBrgb(49, 16, 59)
HSLhsl(286, 57%, 15%)
HSVhsv(286, 73%, 23%)
CMYKcmyk(16.9%, 72.9%, 0%, 76.9%)
CIE-LABlab(11.55, 24.64, -20.49)
CIE-LCHlch(11.55, 32.04, 320.25°)
OKLaboklab(24.81% 0.0627 -0.0574)
OKLCHoklch(24.81% 0.085 317.5)
XYZxyz(2.2412, 1.3394, 4.2773)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31103B #1A3B10
analogous
#1C103B #31103B #3B102F
triadic
#31103B #3B3110 #103B31
tetradic
#31103B #3B1C10 #1A3B10 #102F3B
square
#31103B #3B1C10 #1A3B10 #102F3B
split-complementary
#31103B #2F3B10 #103B1C
monochromatic
#140718 #140718 #31103B #591D6B #812A9B

Accessibility & contrast

On white

16.56
#31103B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31103B
16.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31103B#FFFFFF#000000##FFFFFF
##31103B1.0016.561.2716.56
#FFFFFF16.561.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041C3C
Deuteranopia (green-blind)
#11203A
Tritanopia (blue-blind)
#311823
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #31103b;
/* rgb */ color: rgb(49, 16, 59);
/* oklch */ color: oklch(24.8% 0.085 317.5);
Tailwind
colors: {
  custom: {
    50: '#6b5171',
    500: '#31103b',
    950: '#000000',
  },
}
SCSS
$custom: #31103b;
$custom-light: #6b5171;
$custom-dark: #000000;
JSON
{
  "hex": "#31103b",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 59
  },
  "hsl": {
    "h": 286.047,
    "s": 57.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.2481,
    "c": 0.08496,
    "h": 317.5
  },
  "luminance": 0.01339
}

Semantic roles & 50–950 ramp

primary
#31103B
secondary
#417532
accent
#E1476B
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #31103B

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

Preview Lab → · Contrast checker → · Palette generator →

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