#28042E#28042E

#28042E is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.6% C 0.086 H 321.6°. Best body text is #FFFFFF at 18.31:1 contrast (WCAG AA passes).

Color values

HEX#28042E
RGBrgb(40, 4, 46)
HSLhsl(291, 84%, 10%)
HSVhsv(291, 91%, 18%)
CMYKcmyk(13%, 91.3%, 0%, 82%)
CIE-LABlab(6.64, 25.31, -18.93)
CIE-LCHlch(6.64, 31.61, 323.20°)
OKLaboklab(20.58% 0.0675 -0.0534)
OKLCHoklch(20.58% 0.086 321.6)
XYZxyz(1.4116, 0.7353, 2.6518)
Luminance0.0073 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28042E #0A2E04
analogous
#13042E #28042E #2E041F
triadic
#28042E #2E2804 #042E28
tetradic
#28042E #2E1304 #0A2E04 #041F2E
square
#28042E #2E1304 #0A2E04 #041F2E
split-complementary
#28042E #1F2E04 #042E13
monochromatic
#18021C #18021C #28042E #590966 #8A0E9F

Accessibility & contrast

On white

18.31
#28042E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28042E
18.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28042E#FFFFFF#000000##FFFFFF
##28042E1.0018.311.1518.31
#FFFFFF18.311.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122F
Deuteranopia (green-blind)
#09162D
Tritanopia (blue-blind)
#280B18
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #28042e;
/* rgb */ color: rgb(40, 4, 46);
/* oklch */ color: oklch(20.6% 0.086 321.6);
Tailwind
colors: {
  custom: {
    50: '#644867',
    500: '#28042e',
    950: '#000000',
  },
}
SCSS
$custom: #28042e;
$custom-light: #644867;
$custom-dark: #000000;
JSON
{
  "hex": "#28042e",
  "rgb": {
    "r": 40,
    "g": 4,
    "b": 46
  },
  "hsl": {
    "h": 291.429,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.20584,
    "c": 0.08613,
    "h": 321.6
  },
  "luminance": 0.00735
}

Semantic roles & 50–950 ramp

primary
#28042E
secondary
#29711D
accent
#FA2E4B
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#050106
muted
#7A777A

Preview Lab

Preview with #28042E

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

Preview Lab → · Contrast checker → · Palette generator →

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