#28042D#28042D

#28042D is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.5% C 0.085 H 322.6°. Best body text is #FFFFFF at 18.33:1 contrast (WCAG AA passes).

Color values

HEX#28042D
RGBrgb(40, 4, 45)
HSLhsl(293, 84%, 10%)
HSVhsv(293, 91%, 18%)
CMYKcmyk(11.1%, 91.1%, 0%, 82.4%)
CIE-LABlab(6.57, 25.04, -18.30)
CIE-LCHlch(6.57, 31.02, 323.84°)
OKLaboklab(20.5% 0.0677 -0.0516)
OKLCHoklch(20.5% 0.085 322.6)
XYZxyz(1.3921, 0.7275, 2.5492)
Luminance0.0073 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28042D #092D04
analogous
#14042D #28042D #2D041E
triadic
#28042D #2D2804 #042D28
tetradic
#28042D #2D1404 #092D04 #041E2D
square
#28042D #2D1404 #092D04 #041E2D
split-complementary
#28042D #1E2D04 #042D14
monochromatic
#19021C #19021C #28042D #5A0965 #8C0E9D

Accessibility & contrast

On white

18.33
#28042D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#28042D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28042D
18.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28042D#FFFFFF#000000##FFFFFF
##28042D1.0018.331.1518.33
#FFFFFF18.331.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122E
Deuteranopia (green-blind)
#09162C
Tritanopia (blue-blind)
#290B18
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #28042d;
/* rgb */ color: rgb(40, 4, 45);
/* oklch */ color: oklch(20.5% 0.085 322.6);
Tailwind
colors: {
  custom: {
    50: '#644866',
    500: '#28042d',
    950: '#000000',
  },
}
SCSS
$custom: #28042d;
$custom-light: #644866;
$custom-dark: #000000;
JSON
{
  "hex": "#28042d",
  "rgb": {
    "r": 40,
    "g": 4,
    "b": 45
  },
  "hsl": {
    "h": 292.683,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.20501,
    "c": 0.08512,
    "h": 322.6
  },
  "luminance": 0.00727
}

Semantic roles & 50–950 ramp

primary
#28042D
secondary
#27701D
accent
#FA2E47
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#050006
muted
#7A777A

Preview Lab

Preview with #28042D

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

Preview Lab → · Contrast checker → · Palette generator →

#28042D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva