#28012D#28012D

#28012D is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.0% C 0.091 H 323.1°. Best body text is #FFFFFF at 18.54:1 contrast (WCAG AA passes).

Color values

HEX#28012D
RGBrgb(40, 1, 45)
HSLhsl(293, 96%, 9%)
HSVhsv(293, 98%, 18%)
CMYKcmyk(11.1%, 97.8%, 0%, 82.4%)
CIE-LABlab(5.98, 26.62, -19.23)
CIE-LCHlch(5.98, 32.84, 324.15°)
OKLaboklab(20.02% 0.0731 -0.0548)
OKLCHoklch(20.02% 0.091 323.1)
XYZxyz(1.3595, 0.6624, 2.5384)
Luminance0.0066 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28012D #062D01
analogous
#12012D #28012D #2D011C
triadic
#28012D #2D2801 #012D28
tetradic
#28012D #2D1201 #062D01 #011C2D
square
#28012D #2D1201 #062D01 #011C2D
split-complementary
#28012D #1C2D01 #012D12
monochromatic
#1B011E #1B011E #28012D #5D0269 #9204A5

Accessibility & contrast

On white

18.54
#28012D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28012D
18.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28012D#FFFFFF#000000##FFFFFF
##28012D1.0018.541.1318.54
#FFFFFF18.541.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102E
Deuteranopia (green-blind)
#07152C
Tritanopia (blue-blind)
#290816
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #28012d;
/* rgb */ color: rgb(40, 1, 45);
/* oklch */ color: oklch(20.0% 0.091 323.1);
Tailwind
colors: {
  custom: {
    50: '#644666',
    500: '#28012d',
    950: '#000000',
  },
}
SCSS
$custom: #28012d;
$custom-light: #644666;
$custom-dark: #000000;
JSON
{
  "hex": "#28012d",
  "rgb": {
    "r": 40,
    "g": 1,
    "b": 45
  },
  "hsl": {
    "h": 293.182,
    "s": 95.652,
    "l": 9.02
  },
  "oklch": {
    "l": 0.20015,
    "c": 0.09141,
    "h": 323.1
  },
  "luminance": 0.00662
}

Semantic roles & 50–950 ramp

primary
#28012D
secondary
#217317
accent
#FF2941
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060006
muted
#7A777A

Preview Lab

Preview with #28012D

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

Preview Lab → · Contrast checker → · Palette generator →

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