#28021E#28021E

#28021E is a very dark, moderate pink. Relative luminance 0.006; OKLCH L 19.1% C 0.076 H 340.5°. Best body text is #FFFFFF at 18.79:1 contrast (WCAG AA passes).

Color values

HEX#28021E
RGBrgb(40, 2, 30)
HSLhsl(316, 90%, 8%)
HSVhsv(316, 95%, 16%)
CMYKcmyk(0%, 95%, 25%, 84.3%)
CIE-LABlab(5.32, 22.28, -8.75)
CIE-LCHlch(5.32, 23.94, 338.56°)
OKLaboklab(19.07% 0.0716 -0.0254)
OKLCHoklch(19.07% 0.076 340.5)
XYZxyz(1.1312, 0.5884, 1.2820)
Luminance0.0059 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28021E #02280C
analogous
#1F0228 #28021E #28020B
triadic
#28021E #1E2802 #021E28
tetradic
#28021E #281F02 #02280C #020B28
square
#28021E #281F02 #02280C #020B28
split-complementary
#28021E #0B2802 #02281F
monochromatic
#1D0116 #1D0116 #28021E #62054A #9D0875

Accessibility & contrast

On white

18.79
#28021E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#28021E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28021E
18.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28021E#FFFFFF#000000##FFFFFF
##28021E1.0018.791.1218.79
#FFFFFF18.791.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#040D1F
Deuteranopia (green-blind)
#10141D
Tritanopia (blue-blind)
#2B030E
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #28021e;
/* rgb */ color: rgb(40, 2, 30);
/* oklch */ color: oklch(19.1% 0.076 340.5);
Tailwind
colors: {
  custom: {
    50: '#634759',
    500: '#28021e',
    950: '#000000',
  },
}
SCSS
$custom: #28021e;
$custom-light: #634759;
$custom-dark: #000000;
JSON
{
  "hex": "#28021e",
  "rgb": {
    "r": 40,
    "g": 2,
    "b": 30
  },
  "hsl": {
    "h": 315.789,
    "s": 90.476,
    "l": 8.235
  },
  "oklch": {
    "l": 0.19067,
    "c": 0.07596,
    "h": 340.5
  },
  "luminance": 0.00588
}

Semantic roles & 50–950 ramp

primary
#28021E
secondary
#196D2F
accent
#FF6129
background
#F6F4F5
surface
#EBE6E9
border
#C6C2C5
text
#050003
muted
#7A7778

Preview Lab

Preview with #28021E

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

Preview Lab → · Contrast checker → · Palette generator →

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