#040002#040002

#040002 is a very dark, muted pink. Relative luminance 0.000; OKLCH L 7.1% C 0.030 H 344.8°. Best body text is #FFFFFF at 20.87:1 contrast (WCAG AA passes).

Color values

HEX#040002
RGBrgb(4, 0, 2)
HSLhsl(330, 100%, 1%)
HSVhsv(330, 100%, 2%)
CMYKcmyk(0%, 100%, 50%, 98.4%)
CIE-LABlab(0.27, 1.32, -0.39)
CIE-LCHlch(0.27, 1.38, 343.66°)
OKLaboklab(7.12% 0.0292 -0.008)
OKLCHoklch(7.12% 0.03 344.8)
XYZxyz(0.0610, 0.0302, 0.0600)
Luminance0.0003 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040002 #000402
analogous
#040004 #040002 #040000
triadic
#040002 #020400 #000204
tetradic
#040002 #040400 #000402 #000004
square
#040002 #040400 #000402 #000004
split-complementary
#040002 #000400 #000404
monochromatic
#1F000F #1F000F #1F000F #410021 #7E003F

Accessibility & contrast

On white

20.87
#040002 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040002
20.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040002#FFFFFF#000000##FFFFFF
##0400021.0020.871.0120.87
#FFFFFF20.871.0021.001.00
#0000001.0121.001.0021.00
##FFFFFF20.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000102
Deuteranopia (green-blind)
#010102
Tritanopia (blue-blind)
#050001
Achromatopsia (no color)
#010101

Design tokens & code

CSS
--color: #040002;
/* rgb */ color: rgb(4, 0, 2);
/* oklch */ color: oklch(7.1% 0.030 344.8);
Tailwind
colors: {
  custom: {
    50: '#484748',
    500: '#040002',
    950: '#000000',
  },
}
SCSS
$custom: #040002;
$custom-light: #484748;
$custom-dark: #000000;
JSON
{
  "hex": "#040002",
  "rgb": {
    "r": 4,
    "g": 0,
    "b": 2
  },
  "hsl": {
    "h": 330,
    "s": 100,
    "l": 0.784
  },
  "oklch": {
    "l": 0.07115,
    "c": 0.03028,
    "h": 344.8
  },
  "luminance": 0.0003
}

Semantic roles & 50–950 ramp

primary
#040002
secondary
#0E5130
accent
#FF9429
background
#F4F3F4
surface
#E6E5E6
border
#C2C1C2
text
#000000
muted
#777777

Preview Lab

Preview with #040002

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

Preview Lab → · Contrast checker → · Palette generator →

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