#31103E#31103E

#31103E is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.0% C 0.089 H 315.0°. Best body text is #FFFFFF at 16.48:1 contrast (WCAG AA passes).

Color values

HEX#31103E
RGBrgb(49, 16, 62)
HSLhsl(283, 59%, 15%)
HSVhsv(283, 74%, 24%)
CMYKcmyk(21%, 74.2%, 0%, 75.7%)
CIE-LABlab(11.77, 25.39, -22.28)
CIE-LCHlch(11.77, 33.78, 318.73°)
OKLaboklab(25.04% 0.0626 -0.0626)
OKLCHoklch(25.04% 0.089 315)
XYZxyz(2.3213, 1.3714, 4.6989)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31103E #1D3E10
analogous
#1A103E #31103E #3E1034
triadic
#31103E #3E3110 #103E31
tetradic
#31103E #3E1A10 #1D3E10 #10343E
square
#31103E #3E1A10 #1D3E10 #10343E
split-complementary
#31103E #343E10 #103E1A
monochromatic
#130618 #130618 #31103E #571D6F #7E299F

Accessibility & contrast

On white

16.48
#31103E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31103E
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31103E#FFFFFF#000000##FFFFFF
##31103E1.0016.481.2716.48
#FFFFFF16.481.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011D3F
Deuteranopia (green-blind)
#0F203D
Tritanopia (blue-blind)
#301925
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #31103e;
/* rgb */ color: rgb(49, 16, 62);
/* oklch */ color: oklch(25.0% 0.089 315.0);
Tailwind
colors: {
  custom: {
    50: '#6b5173',
    500: '#31103e',
    950: '#000000',
  },
}
SCSS
$custom: #31103e;
$custom-light: #6b5173;
$custom-dark: #000000;
JSON
{
  "hex": "#31103e",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 62
  },
  "hsl": {
    "h": 283.043,
    "s": 58.974,
    "l": 15.294
  },
  "oklch": {
    "l": 0.25037,
    "c": 0.08852,
    "h": 315
  },
  "luminance": 0.01371
}

Semantic roles & 50–950 ramp

primary
#31103E
secondary
#467832
accent
#E24672
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #31103E

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

Preview Lab → · Contrast checker → · Palette generator →

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