#28072B#28072B

#28072B is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 20.8% C 0.077 H 324.4°. Best body text is #FFFFFF at 18.18:1 contrast (WCAG AA passes).

Color values

HEX#28072B
RGBrgb(40, 7, 43)
HSLhsl(295, 72%, 10%)
HSVhsv(295, 84%, 17%)
CMYKcmyk(7%, 83.7%, 0%, 83.1%)
CIE-LABlab(7.02, 22.95, -16.08)
CIE-LCHlch(7.02, 28.02, 324.97°)
OKLaboklab(20.81% 0.0627 -0.0449)
OKLCHoklch(20.81% 0.077 324.4)
XYZxyz(1.3871, 0.7776, 2.3621)
Luminance0.0078 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28072B #0A2B07
analogous
#16072B #28072B #2B071C
triadic
#28072B #2B2807 #072B28
tetradic
#28072B #2B1607 #0A2B07 #071C2B
square
#28072B #2B1607 #0A2B07 #071C2B
split-complementary
#28072B #1C2B07 #072B16
monochromatic
#18041A #18041A #28072B #591060 #8A1894

Accessibility & contrast

On white

18.18
#28072B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28072B
18.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28072B#FFFFFF#000000##FFFFFF
##28072B1.0018.181.1618.18
#FFFFFF18.181.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02132C
Deuteranopia (green-blind)
#0D172A
Tritanopia (blue-blind)
#290D18
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #28072b;
/* rgb */ color: rgb(40, 7, 43);
/* oklch */ color: oklch(20.8% 0.077 324.4);
Tailwind
colors: {
  custom: {
    50: '#634a64',
    500: '#28072b',
    950: '#000000',
  },
}
SCSS
$custom: #28072b;
$custom-light: #634a64;
$custom-dark: #000000;
JSON
{
  "hex": "#28072b",
  "rgb": {
    "r": 40,
    "g": 7,
    "b": 43
  },
  "hsl": {
    "h": 295,
    "s": 72,
    "l": 9.804
  },
  "oklch": {
    "l": 0.20813,
    "c": 0.07712,
    "h": 324.4
  },
  "luminance": 0.00777
}

Semantic roles & 50–950 ramp

primary
#28072B
secondary
#296B23
accent
#EF3948
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050105
muted
#7A777A

Preview Lab

Preview with #28072B

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

Preview Lab → · Contrast checker → · Palette generator →

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