#28182A#28182A

#28182A is a very dark, muted purple. Relative luminance 0.013; OKLCH L 23.8% C 0.041 H 322.8°. Best body text is #FFFFFF at 16.74:1 contrast (WCAG AA passes).

Color values

HEX#28182A
RGBrgb(40, 24, 42)
HSLhsl(293, 27%, 13%)
HSVhsv(293, 43%, 16%)
CMYKcmyk(4.8%, 42.9%, 0%, 83.5%)
CIE-LABlab(11.08, 11.96, -9.00)
CIE-LCHlch(11.08, 14.97, 323.03°)
OKLaboklab(23.82% 0.0324 -0.0245)
OKLCHoklch(23.82% 0.041 322.8)
XYZxyz(1.6196, 1.2716, 2.3502)
Luminance0.0127 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28182A #1A2A18
analogous
#1F182A #28182A #2A1823
triadic
#28182A #2A2818 #182A28
tetradic
#28182A #2A1F18 #1A2A18 #18232A
square
#28182A #2A1F18 #1A2A18 #18232A
split-complementary
#28182A #232A18 #182A1F
monochromatic
#130B13 #130B13 #28182A #4D2E51 #724578

Accessibility & contrast

On white

16.74
#28182A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#28182A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28182A
16.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28182A#FFFFFF#000000##FFFFFF
##28182A1.0016.741.2516.74
#FFFFFF16.741.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#161C2B
Deuteranopia (green-blind)
#1A1E29
Tritanopia (blue-blind)
#291A1F
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #28182a;
/* rgb */ color: rgb(40, 24, 42);
/* oklch */ color: oklch(23.8% 0.041 322.8);
Tailwind
colors: {
  custom: {
    50: '#625563',
    500: '#28182a',
    950: '#000000',
  },
}
SCSS
$custom: #28182a;
$custom-light: #625563;
$custom-dark: #000000;
JSON
{
  "hex": "#28182a",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 42
  },
  "hsl": {
    "h": 293.333,
    "s": 27.273,
    "l": 12.941
  },
  "oklch": {
    "l": 0.23819,
    "c": 0.04063,
    "h": 322.8
  },
  "luminance": 0.01272
}

Semantic roles & 50–950 ramp

primary
#28182A
secondary
#435E40
accent
#C4646F
background
#F5F4F5
surface
#EAE7EA
border
#C6C3C6
text
#050305
muted
#797879

Preview Lab

Preview with #28182A

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

Preview Lab → · Contrast checker → · Palette generator →

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