#28042F#28042F

#28042F is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.7% C 0.087 H 320.6°. Best body text is #FFFFFF at 18.28:1 contrast (WCAG AA passes).

Color values

HEX#28042F
RGBrgb(40, 4, 47)
HSLhsl(290, 84%, 10%)
HSVhsv(290, 91%, 18%)
CMYKcmyk(14.9%, 91.5%, 0%, 81.6%)
CIE-LABlab(6.71, 25.57, -19.57)
CIE-LCHlch(6.71, 32.20, 322.58°)
OKLaboklab(20.67% 0.0674 -0.0553)
OKLCHoklch(20.67% 0.087 320.6)
XYZxyz(1.4315, 0.7433, 2.7568)
Luminance0.0074 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28042F #0B2F04
analogous
#13042F #28042F #2F0420
triadic
#28042F #2F2804 #042F28
tetradic
#28042F #2F1304 #0B2F04 #04202F
square
#28042F #2F1304 #0B2F04 #04202F
split-complementary
#28042F #202F04 #042F13
monochromatic
#18021C #18021C #28042F #580967 #880EA0

Accessibility & contrast

On white

18.28
#28042F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28042F
18.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28042F#FFFFFF#000000##FFFFFF
##28042F1.0018.281.1518.28
#FFFFFF18.281.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001230
Deuteranopia (green-blind)
#08162E
Tritanopia (blue-blind)
#280C19
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #28042f;
/* rgb */ color: rgb(40, 4, 47);
/* oklch */ color: oklch(20.7% 0.087 320.6);
Tailwind
colors: {
  custom: {
    50: '#644868',
    500: '#28042f',
    950: '#000000',
  },
}
SCSS
$custom: #28042f;
$custom-light: #644868;
$custom-dark: #000000;
JSON
{
  "hex": "#28042f",
  "rgb": {
    "r": 40,
    "g": 4,
    "b": 47
  },
  "hsl": {
    "h": 290.233,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.20667,
    "c": 0.08715,
    "h": 320.6
  },
  "luminance": 0.00743
}

Semantic roles & 50–950 ramp

primary
#28042F
secondary
#2B721D
accent
#FB2D4F
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#050106
muted
#7A777A

Preview Lab

Preview with #28042F

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

Preview Lab → · Contrast checker → · Palette generator →

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