#28042A#28042A

#28042A is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.3% C 0.082 H 325.8°. Best body text is #FFFFFF at 18.40:1 contrast (WCAG AA passes).

Color values

HEX#28042A
RGBrgb(40, 4, 42)
HSLhsl(297, 83%, 9%)
HSVhsv(297, 90%, 16%)
CMYKcmyk(4.8%, 90.5%, 0%, 83.5%)
CIE-LABlab(6.37, 24.26, -16.36)
CIE-LCHlch(6.37, 29.26, 326.00°)
OKLaboklab(20.26% 0.0679 -0.0461)
OKLCHoklch(20.26% 0.082 325.8)
XYZxyz(1.3364, 0.7052, 2.2558)
Luminance0.0070 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28042A #062A04
analogous
#15042A #28042A #2A0419
triadic
#28042A #2A2804 #042A28
tetradic
#28042A #2A1504 #062A04 #04192A
square
#28042A #2A1504 #062A04 #04192A
split-complementary
#28042A #192A04 #042A15
monochromatic
#1B031C #1B031C #28042A #5D0962 #920F9A

Accessibility & contrast

On white

18.40
#28042A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28042A
18.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28042A#FFFFFF#000000##FFFFFF
##28042A1.0018.401.1418.40
#FFFFFF18.401.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112B
Deuteranopia (green-blind)
#0C1629
Tritanopia (blue-blind)
#290A16
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #28042a;
/* rgb */ color: rgb(40, 4, 42);
/* oklch */ color: oklch(20.3% 0.082 325.8);
Tailwind
colors: {
  custom: {
    50: '#644863',
    500: '#28042a',
    950: '#000000',
  },
}
SCSS
$custom: #28042a;
$custom-light: #644863;
$custom-dark: #000000;
JSON
{
  "hex": "#28042a",
  "rgb": {
    "r": 40,
    "g": 4,
    "b": 42
  },
  "hsl": {
    "h": 296.842,
    "s": 82.609,
    "l": 9.02
  },
  "oklch": {
    "l": 0.20262,
    "c": 0.08212,
    "h": 325.8
  },
  "luminance": 0.00705
}

Semantic roles & 50–950 ramp

primary
#28042A
secondary
#216D1D
accent
#F92F39
background
#F6F4F5
surface
#EBE6EA
border
#C6C2C6
text
#050005
muted
#7A7779

Preview Lab

Preview with #28042A

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

Preview Lab → · Contrast checker → · Palette generator →

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