#28072F#28072F

#28072F is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.1% C 0.081 H 320.1°. Best body text is #FFFFFF at 18.08:1 contrast (WCAG AA passes).

Color values

HEX#28072F
RGBrgb(40, 7, 47)
HSLhsl(290, 74%, 11%)
HSVhsv(290, 85%, 18%)
CMYKcmyk(14.9%, 85.1%, 0%, 81.6%)
CIE-LABlab(7.30, 23.97, -18.63)
CIE-LCHlch(7.30, 30.36, 322.14°)
OKLaboklab(21.12% 0.0625 -0.0523)
OKLCHoklch(21.12% 0.081 320.1)
XYZxyz(1.4641, 0.8084, 2.7677)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28072F #0E2F07
analogous
#14072F #28072F #2F0722
triadic
#28072F #2F2807 #072F28
tetradic
#28072F #2F1407 #0E2F07 #07222F
square
#28072F #2F1407 #0E2F07 #07222F
split-complementary
#28072F #222F07 #072F14
monochromatic
#17041B #17041B #28072F #550F64 #83179A

Accessibility & contrast

On white

18.08
#28072F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28072F
18.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28072F#FFFFFF#000000##FFFFFF
##28072F1.0018.081.1618.08
#FFFFFF18.081.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001430
Deuteranopia (green-blind)
#0A172E
Tritanopia (blue-blind)
#280E1A
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #28072f;
/* rgb */ color: rgb(40, 7, 47);
/* oklch */ color: oklch(21.1% 0.081 320.1);
Tailwind
colors: {
  custom: {
    50: '#644a68',
    500: '#28072f',
    950: '#000000',
  },
}
SCSS
$custom: #28072f;
$custom-light: #644a68;
$custom-dark: #000000;
JSON
{
  "hex": "#28072f",
  "rgb": {
    "r": 40,
    "g": 7,
    "b": 47
  },
  "hsl": {
    "h": 289.5,
    "s": 74.074,
    "l": 10.588
  },
  "oklch": {
    "l": 0.21123,
    "c": 0.08148,
    "h": 320.1
  },
  "luminance": 0.00808
}

Semantic roles & 50–950 ramp

primary
#28072F
secondary
#306F23
accent
#F13758
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050106
muted
#7A777A

Preview Lab

Preview with #28072F

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

Preview Lab → · Contrast checker → · Palette generator →

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