#28112E#28112E

#28112E is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.6% C 0.062 H 319.0°. Best body text is #FFFFFF at 17.36:1 contrast (WCAG AA passes).

Color values

HEX#28112E
RGBrgb(40, 17, 46)
HSLhsl(288, 46%, 12%)
HSVhsv(288, 63%, 18%)
CMYKcmyk(13%, 63%, 0%, 82%)
CIE-LABlab(9.40, 17.84, -14.57)
CIE-LCHlch(9.40, 23.03, 320.76°)
OKLaboklab(22.64% 0.0465 -0.0404)
OKLCHoklch(22.64% 0.062 319)
XYZxyz(1.5686, 1.0493, 2.7042)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28112E #172E11
analogous
#19112E #28112E #2E1126
triadic
#28112E #2E2811 #112E28
tetradic
#28112E #2E1911 #172E11 #11262E
square
#28112E #2E1911 #172E11 #11262E
split-complementary
#28112E #262E11 #112E19
monochromatic
#130816 #130816 #28112E #4F225B #763287

Accessibility & contrast

On white

17.36
#28112E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28112E
17.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28112E#FFFFFF#000000##FFFFFF
##28112E1.0017.361.2117.36
#FFFFFF17.361.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C192F
Deuteranopia (green-blind)
#131B2D
Tritanopia (blue-blind)
#28151D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #28112e;
/* rgb */ color: rgb(40, 17, 46);
/* oklch */ color: oklch(22.6% 0.062 319.0);
Tailwind
colors: {
  custom: {
    50: '#635067',
    500: '#28112e',
    950: '#000000',
  },
}
SCSS
$custom: #28112e;
$custom-light: #635067;
$custom-dark: #000000;
JSON
{
  "hex": "#28112e",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 46
  },
  "hsl": {
    "h": 287.586,
    "s": 46.032,
    "l": 12.353
  },
  "oklch": {
    "l": 0.22637,
    "c": 0.06163,
    "h": 319
  },
  "luminance": 0.01049
}

Semantic roles & 50–950 ramp

primary
#28112E
secondary
#3F6634
accent
#D6526D
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050206
muted
#79787A

Preview Lab

Preview with #28112E

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

Preview Lab → · Contrast checker → · Palette generator →

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