#28162A#28162A

#28162A is a very dark, muted purple. Relative luminance 0.012; OKLCH L 23.4% C 0.045 H 323.3°. Best body text is #FFFFFF at 16.96:1 contrast (WCAG AA passes).

Color values

HEX#28162A
RGBrgb(40, 22, 42)
HSLhsl(294, 31%, 13%)
HSVhsv(294, 48%, 16%)
CMYKcmyk(4.8%, 47.6%, 0%, 83.5%)
CIE-LABlab(10.50, 13.38, -9.89)
CIE-LCHlch(10.50, 16.64, 323.53°)
OKLaboklab(23.38% 0.0363 -0.027)
OKLCHoklch(23.38% 0.045 323.3)
XYZxyz(1.5799, 1.1922, 2.3369)
Luminance0.0119 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28162A #182A16
analogous
#1E162A #28162A #2A1622
triadic
#28162A #2A2816 #162A28
tetradic
#28162A #2A1E16 #182A16 #16222A
square
#28162A #2A1E16 #182A16 #16222A
split-complementary
#28162A #222A16 #162A1E
monochromatic
#130B14 #130B14 #28162A #4E2B52 #74407A

Accessibility & contrast

On white

16.96
#28162A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#28162A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28162A
16.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28162A#FFFFFF#000000##FFFFFF
##28162A1.0016.961.2416.96
#FFFFFF16.961.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#141B2B
Deuteranopia (green-blind)
#181D29
Tritanopia (blue-blind)
#29181E
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #28162a;
/* rgb */ color: rgb(40, 22, 42);
/* oklch */ color: oklch(23.4% 0.045 323.3);
Tailwind
colors: {
  custom: {
    50: '#625363',
    500: '#28162a',
    950: '#000000',
  },
}
SCSS
$custom: #28162a;
$custom-light: #625363;
$custom-dark: #000000;
JSON
{
  "hex": "#28162a",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 42
  },
  "hsl": {
    "h": 294,
    "s": 31.25,
    "l": 12.549
  },
  "oklch": {
    "l": 0.23384,
    "c": 0.04527,
    "h": 323.3
  },
  "luminance": 0.01192
}

Semantic roles & 50–950 ramp

primary
#28162A
secondary
#405F3D
accent
#C7606B
background
#F5F4F5
surface
#EAE7EA
border
#C6C3C6
text
#050205
muted
#797879

Preview Lab

Preview with #28162A

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

Preview Lab → · Contrast checker → · Palette generator →

#28162A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva