#31133B#31133B

#31133B is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.3% C 0.080 H 316.9°. Best body text is #FFFFFF at 16.32:1 contrast (WCAG AA passes).

Color values

HEX#31133B
RGBrgb(49, 19, 59)
HSLhsl(285, 51%, 15%)
HSVhsv(285, 68%, 23%)
CMYKcmyk(16.9%, 67.8%, 0%, 76.9%)
CIE-LABlab(12.19, 22.89, -19.48)
CIE-LCHlch(12.19, 30.06, 319.61°)
OKLaboklab(25.27% 0.0581 -0.0544)
OKLCHoklch(25.27% 0.08 316.9)
XYZxyz(2.2888, 1.4346, 4.2932)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31133B #1D3B13
analogous
#1D133B #31133B #3B1331
triadic
#31133B #3B3113 #133B31
tetradic
#31133B #3B1D13 #1D3B13 #13313B
square
#31133B #3B1D13 #1D3B13 #13313B
split-complementary
#31133B #313B13 #133B1D
monochromatic
#130717 #130717 #31133B #572269 #7E3198

Accessibility & contrast

On white

16.32
#31133B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31133B
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31133B#FFFFFF#000000##FFFFFF
##31133B1.0016.321.2916.32
#FFFFFF16.321.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081E3C
Deuteranopia (green-blind)
#14213A
Tritanopia (blue-blind)
#311A24
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #31133b;
/* rgb */ color: rgb(49, 19, 59);
/* oklch */ color: oklch(25.3% 0.080 316.9);
Tailwind
colors: {
  custom: {
    50: '#6b5271',
    500: '#31133b',
    950: '#000000',
  },
}
SCSS
$custom: #31133b;
$custom-light: #6b5271;
$custom-dark: #000000;
JSON
{
  "hex": "#31133b",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 59
  },
  "hsl": {
    "h": 285,
    "s": 51.282,
    "l": 15.294
  },
  "oklch": {
    "l": 0.25273,
    "c": 0.07961,
    "h": 316.9
  },
  "luminance": 0.01434
}

Semantic roles & 50–950 ramp

primary
#31133B
secondary
#467336
accent
#DB4D70
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #31133B

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

Preview Lab → · Contrast checker → · Palette generator →

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