#28012A#28012A

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

Color values

HEX#28012A
RGBrgb(40, 1, 42)
HSLhsl(297, 95%, 8%)
HSVhsv(297, 98%, 16%)
CMYKcmyk(4.8%, 97.6%, 0%, 83.5%)
CIE-LABlab(5.78, 25.80, -17.29)
CIE-LCHlch(5.78, 31.06, 326.18°)
OKLaboklab(19.76% 0.0737 -0.0494)
OKLCHoklch(19.76% 0.089 326.2)
XYZxyz(1.3038, 0.6401, 2.2449)
Luminance0.0064 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28012A #032A01
analogous
#13012A #28012A #2A0117
triadic
#28012A #2A2801 #012A28
tetradic
#28012A #2A1301 #032A01 #01172A
square
#28012A #2A1301 #032A01 #01172A
split-complementary
#28012A #172A01 #012A13
monochromatic
#1C011E #1C011E #28012A #610266 #9A04A2

Accessibility & contrast

On white

18.62
#28012A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28012A
18.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28012A#FFFFFF#000000##FFFFFF
##28012A1.0018.621.1318.62
#FFFFFF18.621.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2B
Deuteranopia (green-blind)
#091529
Tritanopia (blue-blind)
#290715
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #28012a;
/* rgb */ color: rgb(40, 1, 42);
/* oklch */ color: oklch(19.8% 0.089 326.2);
Tailwind
colors: {
  custom: {
    50: '#644663',
    500: '#28012a',
    950: '#000000',
  },
}
SCSS
$custom: #28012a;
$custom-light: #644663;
$custom-dark: #000000;
JSON
{
  "hex": "#28012a",
  "rgb": {
    "r": 40,
    "g": 1,
    "b": 42
  },
  "hsl": {
    "h": 297.073,
    "s": 95.349,
    "l": 8.431
  },
  "oklch": {
    "l": 0.19763,
    "c": 0.08868,
    "h": 326.2
  },
  "luminance": 0.0064
}

Semantic roles & 50–950 ramp

primary
#28012A
secondary
#1B7016
accent
#FF2933
background
#F6F4F5
surface
#EBE6EA
border
#C6C2C6
text
#050005
muted
#7A7779

Preview Lab

Preview with #28012A

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

Preview Lab → · Contrast checker → · Palette generator →

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