#28022E#28022E

#28022E is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.3% C 0.090 H 322.0°. Best body text is #FFFFFF at 18.45:1 contrast (WCAG AA passes).

Color values

HEX#28022E
RGBrgb(40, 2, 46)
HSLhsl(292, 92%, 9%)
HSVhsv(292, 96%, 18%)
CMYKcmyk(13%, 95.7%, 0%, 82%)
CIE-LABlab(6.25, 26.36, -19.56)
CIE-LCHlch(6.25, 32.83, 323.43°)
OKLaboklab(20.26% 0.0711 -0.0556)
OKLCHoklch(20.26% 0.09 322)
XYZxyz(1.3899, 0.6919, 2.6446)
Luminance0.0069 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28022E #082E02
analogous
#12022E #28022E #2E021E
triadic
#28022E #2E2802 #022E28
tetradic
#28022E #2E1202 #082E02 #021E2E
square
#28022E #2E1202 #082E02 #021E2E
split-complementary
#28022E #1E2E02 #022E12
monochromatic
#19011D #19011D #28022E #5B0569 #8E07A3

Accessibility & contrast

On white

18.45
#28022E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#28022E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28022E
18.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28022E#FFFFFF#000000##FFFFFF
##28022E1.0018.451.1418.45
#FFFFFF18.451.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112F
Deuteranopia (green-blind)
#07152D
Tritanopia (blue-blind)
#290A17
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #28022e;
/* rgb */ color: rgb(40, 2, 46);
/* oklch */ color: oklch(20.3% 0.090 322.0);
Tailwind
colors: {
  custom: {
    50: '#644767',
    500: '#28022e',
    950: '#000000',
  },
}
SCSS
$custom: #28022e;
$custom-light: #644767;
$custom-dark: #000000;
JSON
{
  "hex": "#28022e",
  "rgb": {
    "r": 40,
    "g": 2,
    "b": 46
  },
  "hsl": {
    "h": 291.818,
    "s": 91.667,
    "l": 9.412
  },
  "oklch": {
    "l": 0.20264,
    "c": 0.09021,
    "h": 322
  },
  "luminance": 0.00692
}

Semantic roles & 50–950 ramp

primary
#28022E
secondary
#257319
accent
#FF2946
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060006
muted
#7A777A

Preview Lab

Preview with #28022E

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

Preview Lab → · Contrast checker → · Palette generator →

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