#281F2A#281F2A

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

Color values

HEX#281F2A
RGBrgb(40, 31, 42)
HSLhsl(289, 15%, 14%)
HSVhsv(289, 26%, 16%)
CMYKcmyk(4.8%, 26.2%, 0%, 83.5%)
CIE-LABlab(13.22, 6.90, -5.73)
CIE-LCHlch(13.22, 8.97, 320.29°)
OKLaboklab(25.46% 0.0185 -0.0155)
OKLCHoklch(25.46% 0.024 320.1)
XYZxyz(1.7829, 1.5983, 2.4046)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F2A #212A1F
analogous
#231F2A #281F2A #2A1F27
triadic
#281F2A #2A281F #1F2A28
tetradic
#281F2A #2A231F #212A1F #1F272A
square
#281F2A #2A231F #212A1F #1F272A
split-complementary
#281F2A #272A1F #1F2A23
monochromatic
#110D12 #110D12 #281F2A #4A394D #6B5370

Accessibility & contrast

On white

15.91
#281F2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281F2A
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F2A#FFFFFF#000000##FFFFFF
##281F2A1.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281f2a;
/* rgb */ color: rgb(40, 31, 42);
/* oklch */ color: oklch(25.5% 0.024 320.1);
Tailwind
colors: {
  custom: {
    50: '#625a63',
    500: '#281f2a',
    950: '#000000',
  },
}
SCSS
$custom: #281f2a;
$custom-light: #625a63;
$custom-dark: #000000;
JSON
{
  "hex": "#281f2a",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 42
  },
  "hsl": {
    "h": 289.091,
    "s": 15.068,
    "l": 14.314
  },
  "oklch": {
    "l": 0.25457,
    "c": 0.02412,
    "h": 320.1
  },
  "luminance": 0.01598
}

Semantic roles & 50–950 ramp

primary
#281F2A
secondary
#4D5B4A
accent
#B8707D
background
#F5F5F5
surface
#EAE9EA
border
#C6C5C6
text
#050305
muted
#797879

Preview Lab

Preview with #281F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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