#28082E#28082E

#28082E is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.2% C 0.079 H 320.9°. Best body text is #FFFFFF at 18.04:1 contrast (WCAG AA passes).

Color values

HEX#28082E
RGBrgb(40, 8, 46)
HSLhsl(291, 70%, 11%)
HSVhsv(291, 83%, 18%)
CMYKcmyk(13%, 82.6%, 0%, 82%)
CIE-LABlab(7.43, 23.18, -17.69)
CIE-LCHlch(7.43, 29.15, 322.65°)
OKLaboklab(21.19% 0.061 -0.0495)
OKLCHoklch(21.19% 0.079 320.9)
XYZxyz(1.4550, 0.8221, 2.6663)
Luminance0.0082 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28082E #0E2E08
analogous
#15082E #28082E #2E0821
triadic
#28082E #2E2808 #082E28
tetradic
#28082E #2E1508 #0E2E08 #08212E
square
#28082E #2E1508 #0E2E08 #08212E
split-complementary
#28082E #212E08 #082E15
monochromatic
#17051A #17051A #28082E #551162 #831A96

Accessibility & contrast

On white

18.04
#28082E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#28082E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28082E
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28082E#FFFFFF#000000##FFFFFF
##28082E1.0018.041.1618.04
#FFFFFF18.041.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01142F
Deuteranopia (green-blind)
#0C182D
Tritanopia (blue-blind)
#280F1A
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #28082e;
/* rgb */ color: rgb(40, 8, 46);
/* oklch */ color: oklch(21.2% 0.079 320.9);
Tailwind
colors: {
  custom: {
    50: '#644a67',
    500: '#28082e',
    950: '#000000',
  },
}
SCSS
$custom: #28082e;
$custom-light: #644a67;
$custom-dark: #000000;
JSON
{
  "hex": "#28082e",
  "rgb": {
    "r": 40,
    "g": 8,
    "b": 46
  },
  "hsl": {
    "h": 290.526,
    "s": 70.37,
    "l": 10.588
  },
  "oklch": {
    "l": 0.21193,
    "c": 0.07856,
    "h": 320.9
  },
  "luminance": 0.00822
}

Semantic roles & 50–950 ramp

primary
#28082E
secondary
#306D25
accent
#ED3B57
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050106
muted
#7A777A

Preview Lab

Preview with #28082E

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

Preview Lab → · Contrast checker → · Palette generator →

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