#31133E#31133E

#31133E is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.5% C 0.083 H 314.3°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#31133E
RGBrgb(49, 19, 62)
HSLhsl(282, 53%, 16%)
HSVhsv(282, 69%, 24%)
CMYKcmyk(21%, 69.4%, 0%, 75.7%)
CIE-LABlab(12.39, 23.66, -21.28)
CIE-LCHlch(12.39, 31.82, 318.04°)
OKLaboklab(25.49% 0.0582 -0.0597)
OKLCHoklch(25.49% 0.083 314.3)
XYZxyz(2.3689, 1.4666, 4.7148)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31133E #203E13
analogous
#1B133E #31133E #3E1335
triadic
#31133E #3E3113 #133E31
tetradic
#31133E #3E1B13 #203E13 #13353E
square
#31133E #3E1B13 #203E13 #13353E
split-complementary
#31133E #353E13 #133E1B
monochromatic
#130717 #130717 #31133E #56216D #7B309C

Accessibility & contrast

On white

16.24
#31133E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31133E
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31133E#FFFFFF#000000##FFFFFF
##31133E1.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051F3F
Deuteranopia (green-blind)
#12213D
Tritanopia (blue-blind)
#301B26
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #31133e;
/* rgb */ color: rgb(49, 19, 62);
/* oklch */ color: oklch(25.5% 0.083 314.3);
Tailwind
colors: {
  custom: {
    50: '#6b5373',
    500: '#31133e',
    950: '#000000',
  },
}
SCSS
$custom: #31133e;
$custom-light: #6b5373;
$custom-dark: #000000;
JSON
{
  "hex": "#31133e",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 62
  },
  "hsl": {
    "h": 281.86,
    "s": 53.086,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25492,
    "c": 0.08335,
    "h": 314.3
  },
  "luminance": 0.01467
}

Semantic roles & 50–950 ramp

primary
#31133E
secondary
#4A7736
accent
#DC4B77
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #31133E

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

Preview Lab → · Contrast checker → · Palette generator →

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