#28042B#28042B

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

Color values

HEX#28042B
RGBrgb(40, 4, 43)
HSLhsl(295, 83%, 9%)
HSVhsv(295, 91%, 17%)
CMYKcmyk(7%, 90.7%, 0%, 83.1%)
CIE-LABlab(6.44, 24.52, -17.01)
CIE-LCHlch(6.44, 29.84, 325.24°)
OKLaboklab(20.34% 0.0679 -0.048)
OKLCHoklch(20.34% 0.083 324.7)
XYZxyz(1.3545, 0.7125, 2.3512)
Luminance0.0071 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28042B #072B04
analogous
#15042B #28042B #2B041B
triadic
#28042B #2B2804 #042B28
tetradic
#28042B #2B1504 #072B04 #041B2B
square
#28042B #2B1504 #072B04 #041B2B
split-complementary
#28042B #1B2B04 #042B15
monochromatic
#1A031C #1A031C #28042B #5C0963 #900E9B

Accessibility & contrast

On white

18.38
#28042B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28042B
18.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28042B#FFFFFF#000000##FFFFFF
##28042B1.0018.381.1418.38
#FFFFFF18.381.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28042b;
/* rgb */ color: rgb(40, 4, 43);
/* oklch */ color: oklch(20.3% 0.083 324.7);
Tailwind
colors: {
  custom: {
    50: '#644864',
    500: '#28042b',
    950: '#000000',
  },
}
SCSS
$custom: #28042b;
$custom-light: #644864;
$custom-dark: #000000;
JSON
{
  "hex": "#28042b",
  "rgb": {
    "r": 40,
    "g": 4,
    "b": 43
  },
  "hsl": {
    "h": 295.385,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.20341,
    "c": 0.08311,
    "h": 324.7
  },
  "luminance": 0.00712
}

Semantic roles & 50–950 ramp

primary
#28042B
secondary
#236E1D
accent
#F92E3E
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#050005
muted
#7A777A

Preview Lab

Preview with #28042B

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

Preview Lab → · Contrast checker → · Palette generator →

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