#042000#042000

#042000 is a very dark, moderate green. Relative luminance 0.011; OKLCH L 21.3% C 0.069 H 140.0°. Best body text is #FFFFFF at 17.33:1 contrast (WCAG AA passes).

Color values

HEX#042000
RGBrgb(4, 32, 0)
HSLhsl(113, 100%, 6%)
HSVhsv(113, 100%, 13%)
CMYKcmyk(87.5%, 0%, 100%, 87.5%)
CIE-LABlab(9.47, -17.62, 13.84)
CIE-LCHlch(9.47, 22.40, 141.86°)
OKLaboklab(21.34% -0.0526 0.0442)
OKLCHoklch(21.34% 0.069 140)
XYZxyz(0.5666, 1.0588, 0.1745)
Luminance0.0106 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042000 #1C0020
analogous
#142000 #042000 #00200C
triadic
#042000 #000420 #200004
tetradic
#042000 #001420 #1C0020 #200C00
square
#042000 #001420 #1C0020 #200C00
split-complementary
#042000 #0C0020 #200014
monochromatic
#041F00 #041F00 #042000 #0C5D00 #139A00

Accessibility & contrast

On white

17.33
#042000 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #042000
17.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042000#FFFFFF#000000##FFFFFF
##0420001.0017.331.2117.33
#FFFFFF17.331.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #042000;
/* rgb */ color: rgb(4, 32, 0);
/* oklch */ color: oklch(21.3% 0.069 140.0);
Tailwind
colors: {
  custom: {
    50: '#475b46',
    500: '#042000',
    950: '#000000',
  },
}
SCSS
$custom: #042000;
$custom-light: #475b46;
$custom-dark: #000000;
JSON
{
  "hex": "#042000",
  "rgb": {
    "r": 4,
    "g": 32,
    "b": 0
  },
  "hsl": {
    "h": 112.5,
    "s": 100,
    "l": 6.275
  },
  "oklch": {
    "l": 0.21335,
    "c": 0.06866,
    "h": 140
  },
  "luminance": 0.01059
}

Semantic roles & 50–950 ramp

primary
#042000
secondary
#5E1369
accent
#29FFE4
background
#F4F5F3
surface
#E6E9E5
border
#C2C5C1
text
#000400
muted
#777977

Preview Lab

Preview with #042000

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

Preview Lab → · Contrast checker → · Palette generator →

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