#31143C#31143C

#31143C is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.5% C 0.079 H 315.7°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#31143C
RGBrgb(49, 20, 60)
HSLhsl(284, 50%, 16%)
HSVhsv(284, 67%, 24%)
CMYKcmyk(18.3%, 66.7%, 0%, 76.5%)
CIE-LABlab(12.48, 22.55, -19.72)
CIE-LCHlch(12.48, 29.96, 318.82°)
OKLaboklab(25.51% 0.0566 -0.0551)
OKLCHoklch(25.51% 0.079 315.7)
XYZxyz(2.3323, 1.4796, 4.4368)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31143C #1F3C14
analogous
#1D143C #31143C #3C1433
triadic
#31143C #3C3114 #143C31
tetradic
#31143C #3C1D14 #1F3C14 #14333C
square
#31143C #3C1D14 #1F3C14 #14333C
split-complementary
#31143C #333C14 #143C1D
monochromatic
#130817 #130817 #31143C #56236A #7C3398

Accessibility & contrast

On white

16.20
#31143C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31143C
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31143C#FFFFFF#000000##FFFFFF
##31143C1.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091F3D
Deuteranopia (green-blind)
#14213B
Tritanopia (blue-blind)
#301B25
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #31143c;
/* rgb */ color: rgb(49, 20, 60);
/* oklch */ color: oklch(25.5% 0.079 315.7);
Tailwind
colors: {
  custom: {
    50: '#6a5372',
    500: '#31143c',
    950: '#000000',
  },
}
SCSS
$custom: #31143c;
$custom-light: #6a5372;
$custom-dark: #000000;
JSON
{
  "hex": "#31143c",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 60
  },
  "hsl": {
    "h": 283.5,
    "s": 50,
    "l": 15.686
  },
  "oklch": {
    "l": 0.25508,
    "c": 0.07901,
    "h": 315.7
  },
  "luminance": 0.0148
}

Semantic roles & 50–950 ramp

primary
#31143C
secondary
#487438
accent
#DA4E75
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070208
muted
#7A787B

Preview Lab

Preview with #31143C

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

Preview Lab → · Contrast checker → · Palette generator →

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