#28102A#28102A

#28102A is a very dark, muted purple. Relative luminance 0.010; OKLCH L 22.2% C 0.059 H 324.4°. Best body text is #FFFFFF at 17.53:1 contrast (WCAG AA passes).

Color values

HEX#28102A
RGBrgb(40, 16, 42)
HSLhsl(295, 45%, 11%)
HSVhsv(295, 62%, 16%)
CMYKcmyk(4.8%, 61.9%, 0%, 83.5%)
CIE-LABlab(8.90, 17.48, -12.38)
CIE-LCHlch(8.90, 21.43, 324.69°)
OKLaboklab(22.19% 0.0476 -0.0341)
OKLCHoklch(22.19% 0.059 324.4)
XYZxyz(1.4782, 0.9889, 2.3031)
Luminance0.0099 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28102A #122A10
analogous
#1B102A #28102A #2A101F
triadic
#28102A #2A2810 #102A28
tetradic
#28102A #2A1B10 #122A10 #101F2A
square
#28102A #2A1B10 #122A10 #101F2A
split-complementary
#28102A #1F2A10 #102A1B
monochromatic
#150816 #150816 #28102A #522156 #7C3283

Accessibility & contrast

On white

17.53
#28102A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#28102A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28102A
17.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28102A#FFFFFF#000000##FFFFFF
##28102A1.0017.531.2017.53
#FFFFFF17.531.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D172B
Deuteranopia (green-blind)
#141A29
Tritanopia (blue-blind)
#29131B
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #28102a;
/* rgb */ color: rgb(40, 16, 42);
/* oklch */ color: oklch(22.2% 0.059 324.4);
Tailwind
colors: {
  custom: {
    50: '#634f63',
    500: '#28102a',
    950: '#000000',
  },
}
SCSS
$custom: #28102a;
$custom-light: #634f63;
$custom-dark: #000000;
JSON
{
  "hex": "#28102a",
  "rgb": {
    "r": 40,
    "g": 16,
    "b": 42
  },
  "hsl": {
    "h": 295.385,
    "s": 44.828,
    "l": 11.373
  },
  "oklch": {
    "l": 0.2219,
    "c": 0.05859,
    "h": 324.4
  },
  "luminance": 0.00989
}

Semantic roles & 50–950 ramp

primary
#28102A
secondary
#376233
accent
#D5535D
background
#F5F4F5
surface
#EAE7EA
border
#C6C3C6
text
#050205
muted
#797879

Preview Lab

Preview with #28102A

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

Preview Lab → · Contrast checker → · Palette generator →

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