#28072C#28072C

#28072C is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 20.9% C 0.078 H 323.3°. Best body text is #FFFFFF at 18.15:1 contrast (WCAG AA passes).

Color values

HEX#28072C
RGBrgb(40, 7, 44)
HSLhsl(294, 73%, 10%)
HSVhsv(294, 84%, 17%)
CMYKcmyk(9.1%, 84.1%, 0%, 82.7%)
CIE-LABlab(7.09, 23.20, -16.73)
CIE-LCHlch(7.09, 28.60, 324.21°)
OKLaboklab(20.89% 0.0627 -0.0468)
OKLCHoklch(20.89% 0.078 323.3)
XYZxyz(1.4056, 0.7850, 2.4599)
Luminance0.0078 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28072C #0B2C07
analogous
#16072C #28072C #2C071D
triadic
#28072C #2C2807 #072C28
tetradic
#28072C #2C1607 #0B2C07 #071D2C
square
#28072C #2C1607 #0B2C07 #071D2C
split-complementary
#28072C #1D2C07 #072C16
monochromatic
#18041A #18041A #28072C #580F61 #881896

Accessibility & contrast

On white

18.15
#28072C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#28072C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28072C
18.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28072C#FFFFFF#000000##FFFFFF
##28072C1.0018.151.1618.15
#FFFFFF18.151.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01132D
Deuteranopia (green-blind)
#0D172B
Tritanopia (blue-blind)
#290D18
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #28072c;
/* rgb */ color: rgb(40, 7, 44);
/* oklch */ color: oklch(20.9% 0.078 323.3);
Tailwind
colors: {
  custom: {
    50: '#644a65',
    500: '#28072c',
    950: '#000000',
  },
}
SCSS
$custom: #28072c;
$custom-light: #644a65;
$custom-dark: #000000;
JSON
{
  "hex": "#28072c",
  "rgb": {
    "r": 40,
    "g": 7,
    "b": 44
  },
  "hsl": {
    "h": 293.514,
    "s": 72.549,
    "l": 10
  },
  "oklch": {
    "l": 0.20888,
    "c": 0.0782,
    "h": 323.3
  },
  "luminance": 0.00785
}

Semantic roles & 50–950 ramp

primary
#28072C
secondary
#2B6C23
accent
#EF394C
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050105
muted
#7A777A

Preview Lab

Preview with #28072C

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

Preview Lab → · Contrast checker → · Palette generator →

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