#042407#042407

#042407 is a very dark, moderate green. Relative luminance 0.013; OKLCH L 22.9% C 0.064 H 144.9°. Best body text is #FFFFFF at 16.66:1 contrast (WCAG AA passes).

Color values

HEX#042407
RGBrgb(4, 36, 7)
HSLhsl(126, 80%, 8%)
HSVhsv(126, 89%, 14%)
CMYKcmyk(88.9%, 0%, 80.6%, 85.9%)
CIE-LABlab(11.30, -19.22, 13.55)
CIE-LCHlch(11.30, 23.52, 144.83°)
OKLaboklab(22.89% -0.0526 0.037)
OKLCHoklch(22.89% 0.064 144.9)
XYZxyz(0.7192, 1.3028, 0.4145)
Luminance0.0130 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042407 #240421
analogous
#112404 #042407 #042417
triadic
#042407 #070424 #240704
tetradic
#042407 #041124 #240421 #241704
square
#042407 #041124 #240421 #241704
split-complementary
#042407 #170424 #240411
monochromatic
#031C05 #031C05 #042407 #0A5B12 #10921C

Accessibility & contrast

On white

16.66
#042407 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#042407 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042407
16.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042407#FFFFFF#000000##FFFFFF
##0424071.0016.661.2616.66
#FFFFFF16.661.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#252005
Deuteranopia (green-blind)
#211D09
Tritanopia (blue-blind)
#00231E
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #042407;
/* rgb */ color: rgb(4, 36, 7);
/* oklch */ color: oklch(22.9% 0.064 144.9);
Tailwind
colors: {
  custom: {
    50: '#485f4a',
    500: '#042407',
    950: '#000000',
  },
}
SCSS
$custom: #042407;
$custom-light: #485f4a;
$custom-dark: #000000;
JSON
{
  "hex": "#042407",
  "rgb": {
    "r": 4,
    "g": 36,
    "b": 7
  },
  "hsl": {
    "h": 125.625,
    "s": 80,
    "l": 7.843
  },
  "oklch": {
    "l": 0.22885,
    "c": 0.06433,
    "h": 144.9
  },
  "luminance": 0.01303
}

Semantic roles & 50–950 ramp

primary
#042407
secondary
#671D60
accent
#31E4F6
background
#F4F5F4
surface
#E6E9E7
border
#C2C5C3
text
#010401
muted
#777977

Preview Lab

Preview with #042407

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

Preview Lab → · Contrast checker → · Palette generator →

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