#281E2A#281E2A

#281E2A is a dark, muted purple. Relative luminance 0.015; OKLCH L 25.2% C 0.026 H 320.7°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#281E2A
RGBrgb(40, 30, 42)
HSLhsl(290, 17%, 14%)
HSVhsv(290, 29%, 16%)
CMYKcmyk(4.8%, 28.6%, 0%, 83.5%)
CIE-LABlab(12.90, 7.63, -6.21)
CIE-LCHlch(12.90, 9.84, 320.84°)
OKLaboklab(25.21% 0.0205 -0.0168)
OKLCHoklch(25.21% 0.026 320.7)
XYZxyz(1.7572, 1.5469, 2.3960)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E2A #202A1E
analogous
#221E2A #281E2A #2A1E26
triadic
#281E2A #2A281E #1E2A28
tetradic
#281E2A #2A221E #202A1E #1E262A
square
#281E2A #2A221E #202A1E #1E262A
split-complementary
#281E2A #262A1E #1E2A22
monochromatic
#110D12 #110D12 #281E2A #4A384E #6C5171

Accessibility & contrast

On white

16.04
#281E2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281E2A
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E2A#FFFFFF#000000##FFFFFF
##281E2A1.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D212A
Deuteranopia (green-blind)
#1F222A
Tritanopia (blue-blind)
#281F22
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #281e2a;
/* rgb */ color: rgb(40, 30, 42);
/* oklch */ color: oklch(25.2% 0.026 320.7);
Tailwind
colors: {
  custom: {
    50: '#625963',
    500: '#281e2a',
    950: '#000000',
  },
}
SCSS
$custom: #281e2a;
$custom-light: #625963;
$custom-dark: #000000;
JSON
{
  "hex": "#281e2a",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 42
  },
  "hsl": {
    "h": 290,
    "s": 16.667,
    "l": 14.118
  },
  "oklch": {
    "l": 0.25213,
    "c": 0.02648,
    "h": 320.7
  },
  "luminance": 0.01547
}

Semantic roles & 50–950 ramp

primary
#281E2A
secondary
#4C5B48
accent
#B96E7B
background
#F5F5F5
surface
#EAE9EA
border
#C6C5C6
text
#050305
muted
#797879

Preview Lab

Preview with #281E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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