#28112B#28112B

#28112B is a very dark, muted purple. Relative luminance 0.010; OKLCH L 22.4% C 0.058 H 322.9°. Best body text is #FFFFFF at 17.42:1 contrast (WCAG AA passes).

Color values

HEX#28112B
RGBrgb(40, 17, 43)
HSLhsl(293, 43%, 12%)
HSVhsv(293, 60%, 17%)
CMYKcmyk(7%, 60.5%, 0%, 83.1%)
CIE-LABlab(9.21, 17.07, -12.64)
CIE-LCHlch(9.21, 21.24, 323.49°)
OKLaboklab(22.44% 0.046 -0.0348)
OKLCHoklch(22.44% 0.058 322.9)
XYZxyz(1.5115, 1.0265, 2.4035)
Luminance0.0103 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28112B #142B11
analogous
#1B112B #28112B #2B1121
triadic
#28112B #2B2811 #112B28
tetradic
#28112B #2B1B11 #142B11 #11212B
square
#28112B #2B1B11 #142B11 #11212B
split-complementary
#28112B #212B11 #112B1B
monochromatic
#140916 #140916 #28112B #512257 #7A3483

Accessibility & contrast

On white

17.42
#28112B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#28112B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28112B
17.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28112B#FFFFFF#000000##FFFFFF
##28112B1.0017.421.2117.42
#FFFFFF17.421.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D182C
Deuteranopia (green-blind)
#141B2A
Tritanopia (blue-blind)
#29141C
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #28112b;
/* rgb */ color: rgb(40, 17, 43);
/* oklch */ color: oklch(22.4% 0.058 322.9);
Tailwind
colors: {
  custom: {
    50: '#635064',
    500: '#28112b',
    950: '#000000',
  },
}
SCSS
$custom: #28112b;
$custom-light: #635064;
$custom-dark: #000000;
JSON
{
  "hex": "#28112b",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 43
  },
  "hsl": {
    "h": 293.077,
    "s": 43.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.2244,
    "c": 0.05772,
    "h": 322.9
  },
  "luminance": 0.01026
}

Semantic roles & 50–950 ramp

primary
#28112B
secondary
#3A6335
accent
#D35563
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050205
muted
#79787A

Preview Lab

Preview with #28112B

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

Preview Lab → · Contrast checker → · Palette generator →

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