#281E28#281E28

#281E28 is a dark, muted purple. Relative luminance 0.015; OKLCH L 25.1% C 0.024 H 326.2°. Best body text is #FFFFFF at 16.07:1 contrast (WCAG AA passes).

Color values

HEX#281E28
RGBrgb(40, 30, 40)
HSLhsl(300, 14%, 14%)
HSVhsv(300, 25%, 16%)
CMYKcmyk(0%, 25%, 0%, 84.3%)
CIE-LABlab(12.82, 7.12, -4.89)
CIE-LCHlch(12.82, 8.64, 325.52°)
OKLaboklab(25.12% 0.0197 -0.0131)
OKLCHoklch(25.12% 0.024 326.2)
XYZxyz(1.7223, 1.5329, 2.2122)
Luminance0.0153 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E28 #1E281E
analogous
#231E28 #281E28 #281E23
triadic
#281E28 #28281E #1E2828
tetradic
#281E28 #28231E #1E281E #1E2328
square
#281E28 #28231E #1E281E #1E2328
split-complementary
#281E28 #23281E #1E2823
monochromatic
#110D11 #110D11 #281E28 #4B384B #6E526E

Accessibility & contrast

On white

16.07
#281E28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#281E28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281E28
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E28#FFFFFF#000000##FFFFFF
##281E281.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2028
Deuteranopia (green-blind)
#202228
Tritanopia (blue-blind)
#291F21
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #281e28;
/* rgb */ color: rgb(40, 30, 40);
/* oklch */ color: oklch(25.1% 0.024 326.2);
Tailwind
colors: {
  custom: {
    50: '#625961',
    500: '#281e28',
    950: '#000000',
  },
}
SCSS
$custom: #281e28;
$custom-light: #625961;
$custom-dark: #000000;
JSON
{
  "hex": "#281e28",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 40
  },
  "hsl": {
    "h": 300,
    "s": 14.286,
    "l": 13.725
  },
  "oklch": {
    "l": 0.25117,
    "c": 0.02363,
    "h": 326.2
  },
  "luminance": 0.01533
}

Semantic roles & 50–950 ramp

primary
#281E28
secondary
#495949
accent
#B77171
background
#F5F5F5
surface
#EAE9E9
border
#C6C5C5
text
#050305
muted
#797879

Preview Lab

Preview with #281E28

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

Preview Lab → · Contrast checker → · Palette generator →

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