#28102B#28102B

#28102B is a very dark, muted purple. Relative luminance 0.010; OKLCH L 22.3% C 0.060 H 323.0°. Best body text is #FFFFFF at 17.51:1 contrast (WCAG AA passes).

Color values

HEX#28102B
RGBrgb(40, 16, 43)
HSLhsl(293, 46%, 12%)
HSVhsv(293, 63%, 17%)
CMYKcmyk(7%, 62.8%, 0%, 83.1%)
CIE-LABlab(8.96, 17.73, -13.03)
CIE-LCHlch(8.96, 22.00, 323.69°)
OKLaboklab(22.25% 0.0478 -0.036)
OKLCHoklch(22.25% 0.06 323)
XYZxyz(1.4964, 0.9962, 2.3985)
Luminance0.0100 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28102B #132B10
analogous
#1B102B #28102B #2B1021
triadic
#28102B #2B2810 #102B28
tetradic
#28102B #2B1B10 #132B10 #10212B
square
#28102B #2B1B10 #132B10 #10212B
split-complementary
#28102B #212B10 #102B1B
monochromatic
#150816 #150816 #28102B #512158 #7B3184

Accessibility & contrast

On white

17.51
#28102B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28102B
17.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28102B#FFFFFF#000000##FFFFFF
##28102B1.0017.511.2017.51
#FFFFFF17.511.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C182C
Deuteranopia (green-blind)
#131A2A
Tritanopia (blue-blind)
#29131B
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #28102b;
/* rgb */ color: rgb(40, 16, 43);
/* oklch */ color: oklch(22.3% 0.060 323.0);
Tailwind
colors: {
  custom: {
    50: '#634f64',
    500: '#28102b',
    950: '#000000',
  },
}
SCSS
$custom: #28102b;
$custom-light: #634f64;
$custom-dark: #000000;
JSON
{
  "hex": "#28102b",
  "rgb": {
    "r": 40,
    "g": 16,
    "b": 43
  },
  "hsl": {
    "h": 293.333,
    "s": 45.763,
    "l": 11.569
  },
  "oklch": {
    "l": 0.22254,
    "c": 0.05984,
    "h": 323
  },
  "luminance": 0.00996
}

Semantic roles & 50–950 ramp

primary
#28102B
secondary
#396433
accent
#D55261
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050205
muted
#79787A

Preview Lab

Preview with #28102B

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

Preview Lab → · Contrast checker → · Palette generator →

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