#28040F#28040F

#28040F is a very dark, moderate pink. Relative luminance 0.006; OKLCH L 18.7% C 0.062 H 5.6°. Best body text is #FFFFFF at 18.84:1 contrast (WCAG AA passes).

Color values

HEX#28040F
RGBrgb(40, 4, 15)
HSLhsl(342, 82%, 9%)
HSVhsv(342, 90%, 16%)
CMYKcmyk(0%, 90%, 62.5%, 84.3%)
CIE-LABlab(5.17, 18.48, 1.63)
CIE-LCHlch(5.17, 18.55, 5.04°)
OKLaboklab(18.7% 0.062 0.0061)
OKLCHoklch(18.7% 0.062 5.6)
XYZxyz(1.0048, 0.5726, 0.5095)
Luminance0.0057 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28040F #04281D
analogous
#280421 #28040F #280B04
triadic
#28040F #0F2804 #040F28
tetradic
#28040F #212804 #04281D #0B0428
square
#28040F #212804 #04281D #0B0428
split-complementary
#28040F #04280B #042128
monochromatic
#1C030A #1C030A #28040F #600A24 #970F39

Accessibility & contrast

On white

18.84
#28040F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#28040F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28040F
18.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28040F#FFFFFF#000000##FFFFFF
##28040F1.0018.841.1118.84
#FFFFFF18.841.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C0D0F
Deuteranopia (green-blind)
#15140E
Tritanopia (blue-blind)
#2C0108
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #28040f;
/* rgb */ color: rgb(40, 4, 15);
/* oklch */ color: oklch(18.7% 0.062 5.6);
Tailwind
colors: {
  custom: {
    50: '#64484e',
    500: '#28040f',
    950: '#000000',
  },
}
SCSS
$custom: #28040f;
$custom-light: #64484e;
$custom-dark: #000000;
JSON
{
  "hex": "#28040f",
  "rgb": {
    "r": 40,
    "g": 4,
    "b": 15
  },
  "hsl": {
    "h": 341.667,
    "s": 81.818,
    "l": 8.627
  },
  "oklch": {
    "l": 0.18697,
    "c": 0.06227,
    "h": 5.6
  },
  "luminance": 0.00572
}

Semantic roles & 50–950 ramp

primary
#28040F
secondary
#1D6B53
accent
#F8BB30
background
#F6F4F4
surface
#EBE6E7
border
#C6C2C3
text
#060001
muted
#7A7777

Preview Lab

Preview with #28040F

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

Preview Lab → · Contrast checker → · Palette generator →

#28040F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva