#31133D#31133D

#31133D is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.4% C 0.082 H 315.1°. Best body text is #FFFFFF at 16.26:1 contrast (WCAG AA passes).

Color values

HEX#31133D
RGBrgb(49, 19, 61)
HSLhsl(283, 53%, 16%)
HSVhsv(283, 69%, 24%)
CMYKcmyk(19.7%, 68.9%, 0%, 76.1%)
CIE-LABlab(12.32, 23.41, -20.68)
CIE-LCHlch(12.32, 31.23, 318.54°)
OKLaboklab(25.42% 0.0582 -0.0579)
OKLCHoklch(25.42% 0.082 315.1)
XYZxyz(2.3417, 1.4557, 4.5716)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31133D #1F3D13
analogous
#1C133D #31133D #3D1334
triadic
#31133D #3D3113 #133D31
tetradic
#31133D #3D1C13 #1F3D13 #13343D
square
#31133D #3D1C13 #1F3D13 #13343D
split-complementary
#31133D #343D13 #133D1C
monochromatic
#130717 #130717 #31133D #56226C #7C309A

Accessibility & contrast

On white

16.26
#31133D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#31133D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31133D
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31133D#FFFFFF#000000##FFFFFF
##31133D1.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061E3E
Deuteranopia (green-blind)
#12213C
Tritanopia (blue-blind)
#301A25
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #31133d;
/* rgb */ color: rgb(49, 19, 61);
/* oklch */ color: oklch(25.4% 0.082 315.1);
Tailwind
colors: {
  custom: {
    50: '#6b5373',
    500: '#31133d',
    950: '#000000',
  },
}
SCSS
$custom: #31133d;
$custom-light: #6b5373;
$custom-dark: #000000;
JSON
{
  "hex": "#31133d",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 61
  },
  "hsl": {
    "h": 282.857,
    "s": 52.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.25418,
    "c": 0.0821,
    "h": 315.1
  },
  "luminance": 0.01456
}

Semantic roles & 50–950 ramp

primary
#31133D
secondary
#487536
accent
#DC4C75
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070208
muted
#7A787B

Preview Lab

Preview with #31133D

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

Preview Lab → · Contrast checker → · Palette generator →

#31133D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva