#040202#040202

#040202 is a very dark, near-neutral red. Relative luminance 0.001; OKLCH L 9.1% C 0.008 H 18.8°. Best body text is #FFFFFF at 20.69:1 contrast (WCAG AA passes).

Color values

HEX#040202
RGBrgb(4, 2, 2)
HSLhsl(0, 33%, 1%)
HSVhsv(0, 50%, 2%)
CMYKcmyk(0%, 50%, 50%, 98.4%)
CIE-LABlab(0.66, 0.52, 0.18)
CIE-LCHlch(0.66, 0.55, 19.37°)
OKLaboklab(9.13% 0.0079 0.0027)
OKLCHoklch(9.13% 0.008 18.8)
XYZxyz(0.0827, 0.0736, 0.0673)
Luminance0.0007 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040202 #020404
analogous
#040203 #040202 #040302
triadic
#040202 #020402 #020204
tetradic
#040202 #030402 #020404 #030204
square
#040202 #030402 #020404 #030204
split-complementary
#040202 #020403 #020304
monochromatic
#140A0A #140A0A #140A0A #2D1616 #562B2B

Accessibility & contrast

On white

20.69
#040202 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.01
#040202 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040202
20.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040202#FFFFFF#000000##FFFFFF
##0402021.0020.691.0120.69
#FFFFFF20.691.0021.001.00
#0000001.0121.001.0021.00
##FFFFFF20.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#020202
Deuteranopia (green-blind)
#030302
Tritanopia (blue-blind)
#050202
Achromatopsia (no color)
#020202

Design tokens & code

CSS
--color: #040202;
/* rgb */ color: rgb(4, 2, 2);
/* oklch */ color: oklch(9.1% 0.008 18.8);
Tailwind
colors: {
  custom: {
    50: '#484848',
    500: '#040202',
    950: '#000000',
  },
}
SCSS
$custom: #040202;
$custom-light: #484848;
$custom-dark: #000000;
JSON
{
  "hex": "#040202",
  "rgb": {
    "r": 4,
    "g": 2,
    "b": 2
  },
  "hsl": {
    "h": 0,
    "s": 33.333,
    "l": 1.176
  },
  "oklch": {
    "l": 0.09128,
    "c": 0.00835,
    "h": 18.8
  },
  "luminance": 0.00074
}

Semantic roles & 50–950 ramp

primary
#040202
secondary
#253C3C
accent
#C9C95E
background
#F4F4F4
surface
#E6E6E6
border
#C2C2C2
text
#000000
muted
#777777

Preview Lab

Preview with #040202

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

Preview Lab → · Contrast checker → · Palette generator →

#040202 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva