#28182C#28182C

#28182C is a very dark, muted purple. Relative luminance 0.013; OKLCH L 23.9% C 0.043 H 319.4°. Best body text is #FFFFFF at 16.70:1 contrast (WCAG AA passes).

Color values

HEX#28182C
RGBrgb(40, 24, 44)
HSLhsl(288, 29%, 13%)
HSVhsv(288, 45%, 17%)
CMYKcmyk(9.1%, 45.5%, 0%, 82.7%)
CIE-LABlab(11.18, 12.48, -10.31)
CIE-LCHlch(11.18, 16.19, 320.43°)
OKLaboklab(23.93% 0.033 -0.0283)
OKLCHoklch(23.93% 0.043 319.4)
XYZxyz(1.6563, 1.2863, 2.5434)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28182C #1C2C18
analogous
#1E182C #28182C #2C1826
triadic
#28182C #2C2818 #182C28
tetradic
#28182C #2C1E18 #1C2C18 #18262C
square
#28182C #2C1E18 #1C2C18 #18262C
split-complementary
#28182C #262C18 #182C1E
monochromatic
#120B14 #120B14 #28182C #4C2E54 #70437B

Accessibility & contrast

On white

16.70
#28182C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#28182C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28182C
16.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28182C#FFFFFF#000000##FFFFFF
##28182C1.0016.701.2616.70
#FFFFFF16.701.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#151D2D
Deuteranopia (green-blind)
#191E2B
Tritanopia (blue-blind)
#281A1F
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #28182c;
/* rgb */ color: rgb(40, 24, 44);
/* oklch */ color: oklch(23.9% 0.043 319.4);
Tailwind
colors: {
  custom: {
    50: '#625565',
    500: '#28182c',
    950: '#000000',
  },
}
SCSS
$custom: #28182c;
$custom-light: #625565;
$custom-dark: #000000;
JSON
{
  "hex": "#28182c",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 44
  },
  "hsl": {
    "h": 288,
    "s": 29.412,
    "l": 13.333
  },
  "oklch": {
    "l": 0.23931,
    "c": 0.04346,
    "h": 319.4
  },
  "luminance": 0.01286
}

Semantic roles & 50–950 ramp

primary
#28182C
secondary
#46603F
accent
#C66276
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050305
muted
#79787A

Preview Lab

Preview with #28182C

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

Preview Lab → · Contrast checker → · Palette generator →

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