#28012C#28012C

#28012C is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 19.9% C 0.090 H 324.1°. Best body text is #FFFFFF at 18.57:1 contrast (WCAG AA passes).

Color values

HEX#28012C
RGBrgb(40, 1, 44)
HSLhsl(294, 96%, 9%)
HSVhsv(294, 98%, 17%)
CMYKcmyk(9.1%, 97.7%, 0%, 82.7%)
CIE-LABlab(5.91, 26.34, -18.59)
CIE-LCHlch(5.91, 32.24, 324.79°)
OKLaboklab(19.93% 0.0733 -0.053)
OKLCHoklch(19.93% 0.091 324.1)
XYZxyz(1.3405, 0.6548, 2.4382)
Luminance0.0066 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28012C #052C01
analogous
#13012C #28012C #2C011B
triadic
#28012C #2C2801 #012C28
tetradic
#28012C #2C1301 #052C01 #011B2C
square
#28012C #2C1301 #052C01 #011B2C
split-complementary
#28012C #1B2C01 #012C13
monochromatic
#1B011E #1B011E #28012C #5E0268 #9504A4

Accessibility & contrast

On white

18.57
#28012C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#28012C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28012C
18.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28012C#FFFFFF#000000##FFFFFF
##28012C1.0018.571.1318.57
#FFFFFF18.571.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102D
Deuteranopia (green-blind)
#08152B
Tritanopia (blue-blind)
#290816
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #28012c;
/* rgb */ color: rgb(40, 1, 44);
/* oklch */ color: oklch(19.9% 0.090 324.1);
Tailwind
colors: {
  custom: {
    50: '#644665',
    500: '#28012c',
    950: '#000000',
  },
}
SCSS
$custom: #28012c;
$custom-light: #644665;
$custom-dark: #000000;
JSON
{
  "hex": "#28012c",
  "rgb": {
    "r": 40,
    "g": 1,
    "b": 44
  },
  "hsl": {
    "h": 294.419,
    "s": 95.556,
    "l": 8.824
  },
  "oklch": {
    "l": 0.19929,
    "c": 0.0905,
    "h": 324.1
  },
  "luminance": 0.00655
}

Semantic roles & 50–950 ramp

primary
#28012C
secondary
#1F7217
accent
#FF293D
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060005
muted
#7A777A

Preview Lab

Preview with #28012C

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

Preview Lab → · Contrast checker → · Palette generator →

#28012C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva