#31143E#31143E

#31143E is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.7% C 0.082 H 314.0°. Best body text is #FFFFFF at 16.15:1 contrast (WCAG AA passes).

Color values

HEX#31143E
RGBrgb(49, 20, 62)
HSLhsl(281, 51%, 16%)
HSVhsv(281, 68%, 24%)
CMYKcmyk(21%, 67.7%, 0%, 75.7%)
CIE-LABlab(12.62, 23.06, -20.92)
CIE-LCHlch(12.62, 31.14, 317.78°)
OKLaboklab(25.65% 0.0567 -0.0586)
OKLCHoklch(25.65% 0.082 314)
XYZxyz(2.3861, 1.5012, 4.7205)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31143E #213E14
analogous
#1C143E #31143E #3E1436
triadic
#31143E #3E3114 #143E31
tetradic
#31143E #3E1C14 #213E14 #14363E
square
#31143E #3E1C14 #213E14 #14363E
split-complementary
#31143E #363E14 #143E1C
monochromatic
#120717 #120717 #31143E #56236C #7A329B

Accessibility & contrast

On white

16.15
#31143E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#31143E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31143E
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31143E#FFFFFF#000000##FFFFFF
##31143E1.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071F3F
Deuteranopia (green-blind)
#13213D
Tritanopia (blue-blind)
#301B26
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #31143e;
/* rgb */ color: rgb(49, 20, 62);
/* oklch */ color: oklch(25.7% 0.082 314.0);
Tailwind
colors: {
  custom: {
    50: '#6b5373',
    500: '#31143e',
    950: '#000000',
  },
}
SCSS
$custom: #31143e;
$custom-light: #6b5373;
$custom-dark: #000000;
JSON
{
  "hex": "#31143e",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 62
  },
  "hsl": {
    "h": 281.429,
    "s": 51.22,
    "l": 16.078
  },
  "oklch": {
    "l": 0.25653,
    "c": 0.08155,
    "h": 314
  },
  "luminance": 0.01501
}

Semantic roles & 50–950 ramp

primary
#31143E
secondary
#4B7638
accent
#DB4D79
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #31143E

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

Preview Lab → · Contrast checker → · Palette generator →

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