#042002#042002

#042002 is a very dark, moderate green. Relative luminance 0.011; OKLCH L 21.4% C 0.065 H 141.5°. Best body text is #FFFFFF at 17.32:1 contrast (WCAG AA passes).

Color values

HEX#042002
RGBrgb(4, 32, 2)
HSLhsl(116, 88%, 7%)
HSVhsv(116, 94%, 13%)
CMYKcmyk(87.5%, 0%, 93.8%, 87.5%)
CIE-LABlab(9.51, -17.32, 13.07)
CIE-LCHlch(9.51, 21.70, 142.96°)
OKLaboklab(21.38% -0.051 0.0407)
OKLCHoklch(21.38% 0.065 141.5)
XYZxyz(0.5775, 1.0632, 0.2322)
Luminance0.0106 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042002 #1E0220
analogous
#132002 #042002 #02200F
triadic
#042002 #020420 #200204
tetradic
#042002 #021320 #1E0220 #200F02
square
#042002 #021320 #1E0220 #200F02
split-complementary
#042002 #0F0220 #200213
monochromatic
#041D02 #041D02 #042002 #0B5A06 #129309

Accessibility & contrast

On white

17.32
#042002 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#042002 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042002
17.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042002#FFFFFF#000000##FFFFFF
##0420021.0017.321.2117.32
#FFFFFF17.321.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#211C00
Deuteranopia (green-blind)
#1E1A04
Tritanopia (blue-blind)
#011F1A
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #042002;
/* rgb */ color: rgb(4, 32, 2);
/* oklch */ color: oklch(21.4% 0.065 141.5);
Tailwind
colors: {
  custom: {
    50: '#475b47',
    500: '#042002',
    950: '#000000',
  },
}
SCSS
$custom: #042002;
$custom-light: #475b47;
$custom-dark: #000000;
JSON
{
  "hex": "#042002",
  "rgb": {
    "r": 4,
    "g": 32,
    "b": 2
  },
  "hsl": {
    "h": 116,
    "s": 88.235,
    "l": 6.667
  },
  "oklch": {
    "l": 0.21375,
    "c": 0.06526,
    "h": 141.5
  },
  "luminance": 0.01063
}

Semantic roles & 50–950 ramp

primary
#042002
secondary
#611866
accent
#29FEF0
background
#F4F5F4
surface
#E6E9E6
border
#C2C5C2
text
#000400
muted
#777977

Preview Lab

Preview with #042002

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

Preview Lab → · Contrast checker → · Palette generator →

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