#31153E#31153E

#31153E is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.8% C 0.080 H 313.7°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#31153E
RGBrgb(49, 21, 62)
HSLhsl(281, 49%, 16%)
HSVhsv(281, 66%, 24%)
CMYKcmyk(21%, 66.1%, 0%, 75.7%)
CIE-LABlab(12.84, 22.45, -20.56)
CIE-LCHlch(12.84, 30.44, 317.51°)
OKLaboklab(25.82% 0.0551 -0.0576)
OKLCHoklch(25.82% 0.08 313.7)
XYZxyz(2.4041, 1.5372, 4.7266)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31153E #223E15
analogous
#1D153E #31153E #3E1537
triadic
#31153E #3E3115 #153E31
tetradic
#31153E #3E1D15 #223E15 #15373E
square
#31153E #3E1D15 #223E15 #15373E
split-complementary
#31153E #373E15 #153E1D
monochromatic
#120817 #120817 #31153E #55246C #793499

Accessibility & contrast

On white

16.06
#31153E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#31153E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31153E
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31153E#FFFFFF#000000##FFFFFF
##31153E1.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09203F
Deuteranopia (green-blind)
#14223D
Tritanopia (blue-blind)
#301C27
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #31153e;
/* rgb */ color: rgb(49, 21, 62);
/* oklch */ color: oklch(25.8% 0.080 313.7);
Tailwind
colors: {
  custom: {
    50: '#6b5473',
    500: '#31153e',
    950: '#000000',
  },
}
SCSS
$custom: #31153e;
$custom-light: #6b5473;
$custom-dark: #000000;
JSON
{
  "hex": "#31153e",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 62
  },
  "hsl": {
    "h": 280.976,
    "s": 49.398,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25818,
    "c": 0.07971,
    "h": 313.7
  },
  "luminance": 0.01537
}

Semantic roles & 50–950 ramp

primary
#31153E
secondary
#4C7639
accent
#D94F7B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070308
muted
#7A787B

Preview Lab

Preview with #31153E

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

Preview Lab → · Contrast checker → · Palette generator →

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