#28040A#28040A

#28040A is a very dark, moderate red. Relative luminance 0.006; OKLCH L 18.5% C 0.061 H 14.3°. Best body text is #FFFFFF at 18.88:1 contrast (WCAG AA passes).

Color values

HEX#28040A
RGBrgb(40, 4, 10)
HSLhsl(350, 82%, 9%)
HSVhsv(350, 90%, 16%)
CMYKcmyk(0%, 90%, 75%, 84.3%)
CIE-LABlab(5.06, 17.81, 3.80)
CIE-LCHlch(5.06, 18.21, 12.05°)
OKLaboklab(18.53% 0.0595 0.0152)
OKLCHoklch(18.53% 0.061 14.3)
XYZxyz(0.9734, 0.5600, 0.3439)
Luminance0.0056 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28040A #042822
analogous
#28041C #28040A #281004
triadic
#28040A #0A2804 #040A28
tetradic
#28040A #1C2804 #042822 #100428
square
#28040A #1C2804 #042822 #100428
split-complementary
#28040A #042810 #041C28
monochromatic
#1C0307 #1C0307 #28040A #600A18 #970F26

Accessibility & contrast

On white

18.88
#28040A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28040A
18.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28040A#FFFFFF#000000##FFFFFF
##28040A1.0018.881.1118.88
#FFFFFF18.881.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D0C0A
Deuteranopia (green-blind)
#161409
Tritanopia (blue-blind)
#2D0006
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #28040a;
/* rgb */ color: rgb(40, 4, 10);
/* oklch */ color: oklch(18.5% 0.061 14.3);
Tailwind
colors: {
  custom: {
    50: '#64484b',
    500: '#28040a',
    950: '#000000',
  },
}
SCSS
$custom: #28040a;
$custom-light: #64484b;
$custom-dark: #000000;
JSON
{
  "hex": "#28040a",
  "rgb": {
    "r": 40,
    "g": 4,
    "b": 10
  },
  "hsl": {
    "h": 350,
    "s": 81.818,
    "l": 8.627
  },
  "oklch": {
    "l": 0.18534,
    "c": 0.06139,
    "h": 14.3
  },
  "luminance": 0.0056
}

Semantic roles & 50–950 ramp

primary
#28040A
secondary
#1D6B5E
accent
#F8D730
background
#F6F4F4
surface
#EBE6E7
border
#C6C2C3
text
#060001
muted
#7A7777

Preview Lab

Preview with #28040A

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

Preview Lab → · Contrast checker → · Palette generator →

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