#28012B#28012B

#28012B is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.8% C 0.090 H 325.1°. Best body text is #FFFFFF at 18.59:1 contrast (WCAG AA passes).

Color values

HEX#28012B
RGBrgb(40, 1, 43)
HSLhsl(296, 95%, 9%)
HSVhsv(296, 98%, 17%)
CMYKcmyk(7%, 97.7%, 0%, 83.1%)
CIE-LABlab(5.85, 26.07, -17.94)
CIE-LCHlch(5.85, 31.65, 325.47°)
OKLaboklab(19.85% 0.0735 -0.0512)
OKLCHoklch(19.85% 0.09 325.1)
XYZxyz(1.3219, 0.6473, 2.3404)
Luminance0.0065 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28012B #042B01
analogous
#13012B #28012B #2B0119
triadic
#28012B #2B2801 #012B28
tetradic
#28012B #2B1301 #042B01 #01192B
square
#28012B #2B1301 #042B01 #01192B
split-complementary
#28012B #192B01 #012B13
monochromatic
#1C011E #1C011E #28012B #600267 #9704A3

Accessibility & contrast

On white

18.59
#28012B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28012B
18.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28012B#FFFFFF#000000##FFFFFF
##28012B1.0018.591.1318.59
#FFFFFF18.591.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102C
Deuteranopia (green-blind)
#08152A
Tritanopia (blue-blind)
#290715
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #28012b;
/* rgb */ color: rgb(40, 1, 43);
/* oklch */ color: oklch(19.8% 0.090 325.1);
Tailwind
colors: {
  custom: {
    50: '#644664',
    500: '#28012b',
    950: '#000000',
  },
}
SCSS
$custom: #28012b;
$custom-light: #644664;
$custom-dark: #000000;
JSON
{
  "hex": "#28012b",
  "rgb": {
    "r": 40,
    "g": 1,
    "b": 43
  },
  "hsl": {
    "h": 295.714,
    "s": 95.455,
    "l": 8.627
  },
  "oklch": {
    "l": 0.19845,
    "c": 0.08959,
    "h": 325.1
  },
  "luminance": 0.00647
}

Semantic roles & 50–950 ramp

primary
#28012B
secondary
#1D7117
accent
#FF2938
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#050005
muted
#7A777A

Preview Lab

Preview with #28012B

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

Preview Lab → · Contrast checker → · Palette generator →

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