#281232#281232

#281232 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.1% C 0.065 H 314.2°. Best body text is #FFFFFF at 17.17:1 contrast (WCAG AA passes).

Color values

HEX#281232
RGBrgb(40, 18, 50)
HSLhsl(281, 47%, 13%)
HSVhsv(281, 64%, 20%)
CMYKcmyk(20%, 64%, 0%, 80.4%)
CIE-LABlab(9.91, 18.24, -16.69)
CIE-LCHlch(9.91, 24.72, 317.53°)
OKLaboklab(23.1% 0.0453 -0.0466)
OKLCHoklch(23.1% 0.065 314.2)
XYZxyz(1.6670, 1.1141, 3.1442)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281232 #1C3212
analogous
#181232 #281232 #32122C
triadic
#281232 #322812 #123228
tetradic
#281232 #321812 #1C3212 #122C32
square
#281232 #321812 #1C3212 #122C32
split-complementary
#281232 #2C3212 #123218
monochromatic
#120817 #120817 #281232 #4C225F #70328C

Accessibility & contrast

On white

17.17
#281232 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#281232 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281232
17.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281232#FFFFFF#000000##FFFFFF
##2812321.0017.171.2217.17
#FFFFFF17.171.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1A33
Deuteranopia (green-blind)
#111C31
Tritanopia (blue-blind)
#27171F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #281232;
/* rgb */ color: rgb(40, 18, 50);
/* oklch */ color: oklch(23.1% 0.065 314.2);
Tailwind
colors: {
  custom: {
    50: '#63516a',
    500: '#281232',
    950: '#000000',
  },
}
SCSS
$custom: #281232;
$custom-light: #63516a;
$custom-dark: #000000;
JSON
{
  "hex": "#281232",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 50
  },
  "hsl": {
    "h": 281.25,
    "s": 47.059,
    "l": 13.333
  },
  "oklch": {
    "l": 0.231,
    "c": 0.06497,
    "h": 314.2
  },
  "luminance": 0.01114
}

Semantic roles & 50–950 ramp

primary
#281232
secondary
#466A36
accent
#D7517B
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050206
muted
#79787A

Preview Lab

Preview with #281232

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

Preview Lab → · Contrast checker → · Palette generator →

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