#281F2C#281F2C

#281F2C is a dark, muted purple. Relative luminance 0.016; OKLCH L 25.6% C 0.027 H 315.3°. Best body text is #FFFFFF at 15.88:1 contrast (WCAG AA passes).

Color values

HEX#281F2C
RGBrgb(40, 31, 44)
HSLhsl(282, 17%, 15%)
HSVhsv(282, 30%, 17%)
CMYKcmyk(9.1%, 29.5%, 0%, 82.7%)
CIE-LABlab(13.31, 7.42, -7.04)
CIE-LCHlch(13.31, 10.23, 316.50°)
OKLaboklab(25.56% 0.0193 -0.0191)
OKLCHoklch(25.56% 0.027 315.3)
XYZxyz(1.8196, 1.6130, 2.5979)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F2C #232C1F
analogous
#221F2C #281F2C #2C1F2A
triadic
#281F2C #2C281F #1F2C28
tetradic
#281F2C #2C221F #232C1F #1F2A2C
square
#281F2C #2C221F #232C1F #1F2A2C
split-complementary
#281F2C #2A2C1F #1F2C22
monochromatic
#100D12 #100D12 #281F2C #493850 #695274

Accessibility & contrast

On white

15.88
#281F2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#281F2C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F2C
15.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F2C#FFFFFF#000000##FFFFFF
##281F2C1.0015.881.3215.88
#FFFFFF15.881.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D222D
Deuteranopia (green-blind)
#1F222C
Tritanopia (blue-blind)
#282024
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #281f2c;
/* rgb */ color: rgb(40, 31, 44);
/* oklch */ color: oklch(25.6% 0.027 315.3);
Tailwind
colors: {
  custom: {
    50: '#625a65',
    500: '#281f2c',
    950: '#000000',
  },
}
SCSS
$custom: #281f2c;
$custom-light: #625a65;
$custom-dark: #000000;
JSON
{
  "hex": "#281f2c",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 44
  },
  "hsl": {
    "h": 281.538,
    "s": 17.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.25555,
    "c": 0.02718,
    "h": 315.3
  },
  "luminance": 0.01613
}

Semantic roles & 50–950 ramp

primary
#281F2C
secondary
#505E49
accent
#BA6E85
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050305
muted
#79787A

Preview Lab

Preview with #281F2C

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

Preview Lab → · Contrast checker → · Palette generator →

#281F2C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva