#040203#040203

#040203 is a very dark, near-neutral pink. Relative luminance 0.001; OKLCH L 9.2% C 0.010 H 345.0°. Best body text is #FFFFFF at 20.69:1 contrast (WCAG AA passes).

Color values

HEX#040203
RGBrgb(4, 2, 3)
HSLhsl(330, 33%, 1%)
HSVhsv(330, 50%, 2%)
CMYKcmyk(0%, 50%, 25%, 98.4%)
CIE-LABlab(0.68, 0.66, -0.19)
CIE-LCHlch(0.68, 0.69, 343.65°)
OKLaboklab(9.24% 0.0093 -0.0025)
OKLCHoklch(9.24% 0.01 345)
XYZxyz(0.0882, 0.0758, 0.0961)
Luminance0.0008 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040203 #020403
analogous
#040204 #040203 #040202
triadic
#040203 #030402 #020304
tetradic
#040203 #040402 #020403 #020204
square
#040203 #040402 #020403 #020204
split-complementary
#040203 #020402 #020404
monochromatic
#140A0F #140A0F #140A0F #2D1622 #562B40

Accessibility & contrast

On white

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

On black

1.02
#040203 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##040203#FFFFFF#000000##FFFFFF
##0402031.0020.691.0220.69
#FFFFFF20.691.0021.001.00
#0000001.0221.001.0021.00
##FFFFFF20.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#020203
Deuteranopia (green-blind)
#030303
Tritanopia (blue-blind)
#040202
Achromatopsia (no color)
#020202

Design tokens & code

CSS
--color: #040203;
/* rgb */ color: rgb(4, 2, 3);
/* oklch */ color: oklch(9.2% 0.010 345.0);
Tailwind
colors: {
  custom: {
    50: '#484848',
    500: '#040203',
    950: '#000000',
  },
}
SCSS
$custom: #040203;
$custom-light: #484848;
$custom-dark: #000000;
JSON
{
  "hex": "#040203",
  "rgb": {
    "r": 4,
    "g": 2,
    "b": 3
  },
  "hsl": {
    "h": 330,
    "s": 33.333,
    "l": 1.176
  },
  "oklch": {
    "l": 0.09241,
    "c": 0.00965,
    "h": 345
  },
  "luminance": 0.00076
}

Semantic roles & 50–950 ramp

primary
#040203
secondary
#253C31
accent
#C9945E
background
#F4F4F4
surface
#E6E6E6
border
#C2C2C2
text
#000000
muted
#777777

Preview Lab

Preview with #040203

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

Preview Lab → · Contrast checker → · Palette generator →

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