#28072E#28072E

#28072E is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.0% C 0.080 H 321.1°. Best body text is #FFFFFF at 18.10:1 contrast (WCAG AA passes).

Color values

HEX#28072E
RGBrgb(40, 7, 46)
HSLhsl(291, 74%, 10%)
HSVhsv(291, 85%, 18%)
CMYKcmyk(13%, 84.8%, 0%, 82%)
CIE-LABlab(7.23, 23.71, -18.00)
CIE-LCHlch(7.23, 29.77, 322.79°)
OKLaboklab(21.04% 0.0626 -0.0505)
OKLCHoklch(21.04% 0.08 321.1)
XYZxyz(1.4441, 0.8004, 2.6627)
Luminance0.0080 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28072E #0D2E07
analogous
#14072E #28072E #2E0720
triadic
#28072E #2E2807 #072E28
tetradic
#28072E #2E1407 #0D2E07 #07202E
square
#28072E #2E1407 #0D2E07 #07202E
split-complementary
#28072E #202E07 #072E14
monochromatic
#17041B #17041B #28072E #560F63 #841798

Accessibility & contrast

On white

18.10
#28072E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28072E
18.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28072E#FFFFFF#000000##FFFFFF
##28072E1.0018.101.1618.10
#FFFFFF18.101.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00142F
Deuteranopia (green-blind)
#0B172D
Tritanopia (blue-blind)
#280E19
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #28072e;
/* rgb */ color: rgb(40, 7, 46);
/* oklch */ color: oklch(21.0% 0.080 321.1);
Tailwind
colors: {
  custom: {
    50: '#644a67',
    500: '#28072e',
    950: '#000000',
  },
}
SCSS
$custom: #28072e;
$custom-light: #644a67;
$custom-dark: #000000;
JSON
{
  "hex": "#28072e",
  "rgb": {
    "r": 40,
    "g": 7,
    "b": 46
  },
  "hsl": {
    "h": 290.769,
    "s": 73.585,
    "l": 10.392
  },
  "oklch": {
    "l": 0.21044,
    "c": 0.08038,
    "h": 321.1
  },
  "luminance": 0.008
}

Semantic roles & 50–950 ramp

primary
#28072E
secondary
#2F6E23
accent
#F03854
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050106
muted
#7A777A

Preview Lab

Preview with #28072E

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

Preview Lab → · Contrast checker → · Palette generator →

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