#28002A#28002A

#28002A is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.6% C 0.091 H 326.3°. Best body text is #FFFFFF at 18.69:1 contrast (WCAG AA passes).

Color values

HEX#28002A
RGBrgb(40, 0, 42)
HSLhsl(297, 100%, 8%)
HSVhsv(297, 100%, 16%)
CMYKcmyk(4.8%, 100%, 0%, 83.5%)
CIE-LABlab(5.59, 26.32, -17.59)
CIE-LCHlch(5.59, 31.66, 326.23°)
OKLaboklab(19.59% 0.0757 -0.0505)
OKLCHoklch(19.59% 0.091 326.3)
XYZxyz(1.2930, 0.6184, 2.2413)
Luminance0.0062 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28002A #022A00
analogous
#13002A #28002A #2A0017
triadic
#28002A #2A2800 #002A28
tetradic
#28002A #2A1300 #022A00 #00172A
square
#28002A #2A1300 #022A00 #00172A
split-complementary
#28002A #172A00 #002A13
monochromatic
#1D001F #1D001F #28002A #620067 #9D00A4

Accessibility & contrast

On white

18.69
#28002A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#28002A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28002A
18.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28002A#FFFFFF#000000##FFFFFF
##28002A1.0018.691.1218.69
#FFFFFF18.691.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2B
Deuteranopia (green-blind)
#081429
Tritanopia (blue-blind)
#290614
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #28002a;
/* rgb */ color: rgb(40, 0, 42);
/* oklch */ color: oklch(19.6% 0.091 326.3);
Tailwind
colors: {
  custom: {
    50: '#644664',
    500: '#28002a',
    950: '#000000',
  },
}
SCSS
$custom: #28002a;
$custom-light: #644664;
$custom-dark: #000000;
JSON
{
  "hex": "#28002a",
  "rgb": {
    "r": 40,
    "g": 0,
    "b": 42
  },
  "hsl": {
    "h": 297.143,
    "s": 100,
    "l": 8.235
  },
  "oklch": {
    "l": 0.1959,
    "c": 0.091,
    "h": 326.3
  },
  "luminance": 0.00618
}

Semantic roles & 50–950 ramp

primary
#28002A
secondary
#197214
accent
#FF2933
background
#F6F4F5
surface
#EBE6EA
border
#C6C2C6
text
#050005
muted
#7A7779

Preview Lab

Preview with #28002A

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

Preview Lab → · Contrast checker → · Palette generator →

#28002A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva