#28042C#28042C

#28042C is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.4% C 0.084 H 323.7°. Best body text is #FFFFFF at 18.36:1 contrast (WCAG AA passes).

Color values

HEX#28042C
RGBrgb(40, 4, 44)
HSLhsl(294, 83%, 9%)
HSVhsv(294, 91%, 17%)
CMYKcmyk(9.1%, 90.9%, 0%, 82.7%)
CIE-LABlab(6.50, 24.78, -17.66)
CIE-LCHlch(6.50, 30.43, 324.53°)
OKLaboklab(20.42% 0.0678 -0.0498)
OKLCHoklch(20.42% 0.084 323.7)
XYZxyz(1.3731, 0.7199, 2.4490)
Luminance0.0072 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28042C #082C04
analogous
#14042C #28042C #2C041C
triadic
#28042C #2C2804 #042C28
tetradic
#28042C #2C1404 #082C04 #041C2C
square
#28042C #2C1404 #082C04 #041C2C
split-complementary
#28042C #1C2C04 #042C14
monochromatic
#19031C #19031C #28042C #5B0964 #8E0E9C

Accessibility & contrast

On white

18.36
#28042C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#28042C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28042C
18.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28042C#FFFFFF#000000##FFFFFF
##28042C1.0018.361.1418.36
#FFFFFF18.361.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122D
Deuteranopia (green-blind)
#0A162B
Tritanopia (blue-blind)
#290A17
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #28042c;
/* rgb */ color: rgb(40, 4, 44);
/* oklch */ color: oklch(20.4% 0.084 323.7);
Tailwind
colors: {
  custom: {
    50: '#644865',
    500: '#28042c',
    950: '#000000',
  },
}
SCSS
$custom: #28042c;
$custom-light: #644865;
$custom-dark: #000000;
JSON
{
  "hex": "#28042c",
  "rgb": {
    "r": 40,
    "g": 4,
    "b": 44
  },
  "hsl": {
    "h": 294,
    "s": 83.333,
    "l": 9.412
  },
  "oklch": {
    "l": 0.2042,
    "c": 0.08411,
    "h": 323.7
  },
  "luminance": 0.0072
}

Semantic roles & 50–950 ramp

primary
#28042C
secondary
#256F1D
accent
#FA2E43
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#050005
muted
#7A777A

Preview Lab

Preview with #28042C

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

Preview Lab → · Contrast checker → · Palette generator →

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