#291231#291231

#291231 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.2% C 0.064 H 316.7°. Best body text is #FFFFFF at 17.14:1 contrast (WCAG AA passes).

Color values

HEX#291231
RGBrgb(41, 18, 49)
HSLhsl(285, 46%, 13%)
HSVhsv(285, 63%, 19%)
CMYKcmyk(16.3%, 63.3%, 0%, 80.8%)
CIE-LABlab(10.00, 18.31, -15.81)
CIE-LCHlch(10.00, 24.19, 319.20°)
OKLaboklab(23.18% 0.0467 -0.044)
OKLCHoklch(23.18% 0.064 316.7)
XYZxyz(1.6851, 1.1258, 3.0337)
Luminance0.0113 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291231 #1A3112
analogous
#191231 #291231 #311229
triadic
#291231 #312912 #123129
tetradic
#291231 #311912 #1A3112 #122931
square
#291231 #311912 #1A3112 #122931
split-complementary
#291231 #293112 #123119
monochromatic
#130816 #130816 #291231 #4E225E #74338B

Accessibility & contrast

On white

17.14
#291231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#291231 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291231
17.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291231#FFFFFF#000000##FFFFFF
##2912311.0017.141.2317.14
#FFFFFF17.141.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1A32
Deuteranopia (green-blind)
#131C30
Tritanopia (blue-blind)
#29171F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #291231;
/* rgb */ color: rgb(41, 18, 49);
/* oklch */ color: oklch(23.2% 0.064 316.7);
Tailwind
colors: {
  custom: {
    50: '#645169',
    500: '#291231',
    950: '#000000',
  },
}
SCSS
$custom: #291231;
$custom-light: #645169;
$custom-dark: #000000;
JSON
{
  "hex": "#291231",
  "rgb": {
    "r": 41,
    "g": 18,
    "b": 49
  },
  "hsl": {
    "h": 284.516,
    "s": 46.269,
    "l": 13.137
  },
  "oklch": {
    "l": 0.23179,
    "c": 0.06417,
    "h": 316.7
  },
  "luminance": 0.01126
}

Semantic roles & 50–950 ramp

primary
#291231
secondary
#436936
accent
#D65274
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050206
muted
#7A787A

Preview Lab

Preview with #291231

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

Preview Lab → · Contrast checker → · Palette generator →

#291231 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva