#28012E#28012E

#28012E is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.1% C 0.092 H 322.2°. Best body text is #FFFFFF at 18.52:1 contrast (WCAG AA passes).

Color values

HEX#28012E
RGBrgb(40, 1, 46)
HSLhsl(292, 96%, 9%)
HSVhsv(292, 98%, 18%)
CMYKcmyk(13%, 97.8%, 0%, 82%)
CIE-LABlab(6.05, 26.89, -19.87)
CIE-LCHlch(6.05, 33.43, 323.54°)
OKLaboklab(20.1% 0.0729 -0.0566)
OKLCHoklch(20.1% 0.092 322.2)
XYZxyz(1.3790, 0.6702, 2.6410)
Luminance0.0067 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28012E #072E01
analogous
#12012E #28012E #2E011E
triadic
#28012E #2E2801 #012E28
tetradic
#28012E #2E1201 #072E01 #011E2E
square
#28012E #2E1201 #072E01 #011E2E
split-complementary
#28012E #1E2E01 #012E12
monochromatic
#1A011E #1A011E #28012E #5C026A #9004A6

Accessibility & contrast

On white

18.52
#28012E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28012E
18.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28012E#FFFFFF#000000##FFFFFF
##28012E1.0018.521.1318.52
#FFFFFF18.521.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102F
Deuteranopia (green-blind)
#06152D
Tritanopia (blue-blind)
#290917
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #28012e;
/* rgb */ color: rgb(40, 1, 46);
/* oklch */ color: oklch(20.1% 0.092 322.2);
Tailwind
colors: {
  custom: {
    50: '#644667',
    500: '#28012e',
    950: '#000000',
  },
}
SCSS
$custom: #28012e;
$custom-light: #644667;
$custom-dark: #000000;
JSON
{
  "hex": "#28012e",
  "rgb": {
    "r": 40,
    "g": 1,
    "b": 46
  },
  "hsl": {
    "h": 292,
    "s": 95.745,
    "l": 9.216
  },
  "oklch": {
    "l": 0.20101,
    "c": 0.09233,
    "h": 322.2
  },
  "luminance": 0.0067
}

Semantic roles & 50–950 ramp

primary
#28012E
secondary
#237417
accent
#FF2945
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060006
muted
#7A777A

Preview Lab

Preview with #28012E

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

Preview Lab → · Contrast checker → · Palette generator →

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