#28022B#28022B

#28022B is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.0% C 0.087 H 325.0°. Best body text is #FFFFFF at 18.52:1 contrast (WCAG AA passes).

Color values

HEX#28022B
RGBrgb(40, 2, 43)
HSLhsl(296, 91%, 9%)
HSVhsv(296, 95%, 17%)
CMYKcmyk(7%, 95.3%, 0%, 83.1%)
CIE-LABlab(6.04, 25.56, -17.63)
CIE-LCHlch(6.04, 31.05, 325.40°)
OKLaboklab(20.01% 0.0716 -0.0501)
OKLCHoklch(20.01% 0.087 325)
XYZxyz(1.3328, 0.6690, 2.3440)
Luminance0.0067 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28022B #052B02
analogous
#14022B #28022B #2B021A
triadic
#28022B #2B2802 #022B28
tetradic
#28022B #2B1402 #052B02 #021A2B
square
#28022B #2B1402 #052B02 #021A2B
split-complementary
#28022B #1A2B02 #022B14
monochromatic
#1B011D #1B011D #28022B #5E0565 #9507A0

Accessibility & contrast

On white

18.52
#28022B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#28022B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28022B
18.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28022B#FFFFFF#000000##FFFFFF
##28022B1.0018.521.1318.52
#FFFFFF18.521.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102C
Deuteranopia (green-blind)
#09152A
Tritanopia (blue-blind)
#290816
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #28022b;
/* rgb */ color: rgb(40, 2, 43);
/* oklch */ color: oklch(20.0% 0.087 325.0);
Tailwind
colors: {
  custom: {
    50: '#644764',
    500: '#28022b',
    950: '#000000',
  },
}
SCSS
$custom: #28022b;
$custom-light: #644764;
$custom-dark: #000000;
JSON
{
  "hex": "#28022b",
  "rgb": {
    "r": 40,
    "g": 2,
    "b": 43
  },
  "hsl": {
    "h": 295.61,
    "s": 91.111,
    "l": 8.824
  },
  "oklch": {
    "l": 0.20013,
    "c": 0.08737,
    "h": 325
  },
  "luminance": 0.00669
}

Semantic roles & 50–950 ramp

primary
#28022B
secondary
#1F7019
accent
#FF2938
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#050005
muted
#7A777A

Preview Lab

Preview with #28022B

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

Preview Lab → · Contrast checker → · Palette generator →

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