#281F2B#281F2B

#281F2B is a dark, muted purple. Relative luminance 0.016; OKLCH L 25.5% C 0.026 H 317.6°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#281F2B
RGBrgb(40, 31, 43)
HSLhsl(285, 16%, 15%)
HSVhsv(285, 28%, 17%)
CMYKcmyk(7%, 27.9%, 0%, 83.1%)
CIE-LABlab(13.26, 7.16, -6.39)
CIE-LCHlch(13.26, 9.60, 318.26°)
OKLaboklab(25.51% 0.0189 -0.0173)
OKLCHoklch(25.51% 0.026 317.6)
XYZxyz(1.8010, 1.6055, 2.5001)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F2B #222B1F
analogous
#221F2B #281F2B #2B1F28
triadic
#281F2B #2B281F #1F2B28
tetradic
#281F2B #2B221F #222B1F #1F282B
square
#281F2B #2B221F #222B1F #1F282B
split-complementary
#281F2B #282B1F #1F2B22
monochromatic
#110D12 #110D12 #281F2B #49394F #6A5272

Accessibility & contrast

On white

15.89
#281F2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281F2B
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F2B#FFFFFF#000000##FFFFFF
##281F2B1.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E222C
Deuteranopia (green-blind)
#20222B
Tritanopia (blue-blind)
#282023
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #281f2b;
/* rgb */ color: rgb(40, 31, 43);
/* oklch */ color: oklch(25.5% 0.026 317.6);
Tailwind
colors: {
  custom: {
    50: '#625a64',
    500: '#281f2b',
    950: '#000000',
  },
}
SCSS
$custom: #281f2b;
$custom-light: #625a64;
$custom-dark: #000000;
JSON
{
  "hex": "#281f2b",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 43
  },
  "hsl": {
    "h": 285,
    "s": 16.216,
    "l": 14.51
  },
  "oklch": {
    "l": 0.25505,
    "c": 0.02564,
    "h": 317.6
  },
  "luminance": 0.01606
}

Semantic roles & 50–950 ramp

primary
#281F2B
secondary
#4E5C49
accent
#B96F81
background
#F5F5F5
surface
#EAE9EA
border
#C6C5C6
text
#050305
muted
#797879

Preview Lab

Preview with #281F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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