#282028#282028

#282028 is a dark, near-neutral purple. Relative luminance 0.016; OKLCH L 25.6% C 0.019 H 326.1°. Best body text is #FFFFFF at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#282028
RGBrgb(40, 32, 40)
HSLhsl(300, 11%, 14%)
HSVhsv(300, 20%, 16%)
CMYKcmyk(0%, 20%, 0%, 84.3%)
CIE-LABlab(13.46, 5.68, -3.93)
CIE-LCHlch(13.46, 6.90, 325.30°)
OKLaboklab(25.61% 0.0157 -0.0105)
OKLCHoklch(25.61% 0.019 326.1)
XYZxyz(1.7745, 1.6374, 2.2296)
Luminance0.0164 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282028 #202820
analogous
#242028 #282028 #282024
triadic
#282028 #282820 #202828
tetradic
#282028 #282420 #202820 #202428
square
#282028 #282420 #202820 #202428
split-complementary
#282028 #242820 #202824
monochromatic
#110E11 #110E11 #282028 #4A3B4A #6C566C

Accessibility & contrast

On white

15.82
#282028 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#282028 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282028
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282028#FFFFFF#000000##FFFFFF
##2820281.0015.821.3315.82
#FFFFFF15.821.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202228
Deuteranopia (green-blind)
#212328
Tritanopia (blue-blind)
#292123
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #282028;
/* rgb */ color: rgb(40, 32, 40);
/* oklch */ color: oklch(25.6% 0.019 326.1);
Tailwind
colors: {
  custom: {
    50: '#615b61',
    500: '#282028',
    950: '#000000',
  },
}
SCSS
$custom: #282028;
$custom-light: #615b61;
$custom-dark: #000000;
JSON
{
  "hex": "#282028",
  "rgb": {
    "r": 40,
    "g": 32,
    "b": 40
  },
  "hsl": {
    "h": 300,
    "s": 11.111,
    "l": 14.118
  },
  "oklch": {
    "l": 0.25611,
    "c": 0.01885,
    "h": 326.1
  },
  "luminance": 0.01637
}

Semantic roles & 50–950 ramp

primary
#282028
secondary
#4C584C
accent
#B47474
background
#F5F5F5
surface
#EAE9E9
border
#C6C5C5
text
#050405
muted
#797979

Preview Lab

Preview with #282028

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

Preview Lab → · Contrast checker → · Palette generator →

#282028 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva