#28152D#28152D

#28152D is a very dark, muted purple. Relative luminance 0.012; OKLCH L 23.4% C 0.052 H 319.1°. Best body text is #FFFFFF at 17.00:1 contrast (WCAG AA passes).

Color values

HEX#28152D
RGBrgb(40, 21, 45)
HSLhsl(288, 36%, 13%)
HSVhsv(288, 53%, 18%)
CMYKcmyk(11.1%, 53.3%, 0%, 82.4%)
CIE-LABlab(10.39, 14.86, -12.28)
CIE-LCHlch(10.39, 19.27, 320.43°)
OKLaboklab(23.35% 0.039 -0.0338)
OKLCHoklch(23.35% 0.052 319.1)
XYZxyz(1.6168, 1.1770, 2.6241)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28152D #1A2D15
analogous
#1C152D #28152D #2D1526
triadic
#28152D #2D2815 #152D28
tetradic
#28152D #2D1C15 #1A2D15 #15262D
square
#28152D #2D1C15 #1A2D15 #15262D
split-complementary
#28152D #262D15 #152D1C
monochromatic
#130A15 #130A15 #28152D #4D2857 #723C80

Accessibility & contrast

On white

17.00
#28152D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#28152D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28152D
17.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28152D#FFFFFF#000000##FFFFFF
##28152D1.0017.001.2417.00
#FFFFFF17.001.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF17.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#111B2E
Deuteranopia (green-blind)
#161D2C
Tritanopia (blue-blind)
#28181E
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #28152d;
/* rgb */ color: rgb(40, 21, 45);
/* oklch */ color: oklch(23.4% 0.052 319.1);
Tailwind
colors: {
  custom: {
    50: '#625366',
    500: '#28152d',
    950: '#000000',
  },
}
SCSS
$custom: #28152d;
$custom-light: #625366;
$custom-dark: #000000;
JSON
{
  "hex": "#28152d",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 45
  },
  "hsl": {
    "h": 287.5,
    "s": 36.364,
    "l": 12.941
  },
  "oklch": {
    "l": 0.23354,
    "c": 0.05166,
    "h": 319.1
  },
  "luminance": 0.01177
}

Semantic roles & 50–950 ramp

primary
#28152D
secondary
#43633B
accent
#CC5B73
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050205
muted
#79787A

Preview Lab

Preview with #28152D

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

Preview Lab → · Contrast checker → · Palette generator →

#28152D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva