#042408#042408

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

Color values

HEX#042408
RGBrgb(4, 36, 8)
HSLhsl(128, 80%, 8%)
HSVhsv(128, 89%, 14%)
CMYKcmyk(88.9%, 0%, 77.8%, 85.9%)
CIE-LABlab(11.31, -19.07, 13.16)
CIE-LCHlch(11.31, 23.17, 145.39°)
OKLaboklab(22.9% -0.0521 0.0357)
OKLCHoklch(22.9% 0.063 145.6)
XYZxyz(0.7247, 1.3050, 0.4434)
Luminance0.0131 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042408 #240420
analogous
#102404 #042408 #042418
triadic
#042408 #080424 #240804
tetradic
#042408 #041024 #240420 #241804
square
#042408 #041024 #240420 #241804
split-complementary
#042408 #180424 #240410
monochromatic
#031C06 #031C06 #042408 #0A5B14 #109220

Accessibility & contrast

On white

16.65
#042408 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #042408
16.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042408#FFFFFF#000000##FFFFFF
##0424081.0016.651.2616.65
#FFFFFF16.651.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #042408;
/* rgb */ color: rgb(4, 36, 8);
/* oklch */ color: oklch(22.9% 0.063 145.6);
Tailwind
colors: {
  custom: {
    50: '#485f4a',
    500: '#042408',
    950: '#000000',
  },
}
SCSS
$custom: #042408;
$custom-light: #485f4a;
$custom-dark: #000000;
JSON
{
  "hex": "#042408",
  "rgb": {
    "r": 4,
    "g": 36,
    "b": 8
  },
  "hsl": {
    "h": 127.5,
    "s": 80,
    "l": 7.843
  },
  "oklch": {
    "l": 0.22902,
    "c": 0.06313,
    "h": 145.6
  },
  "luminance": 0.01305
}

Semantic roles & 50–950 ramp

primary
#042408
secondary
#671D5E
accent
#31DEF6
background
#F4F5F4
surface
#E7E9E7
border
#C3C5C3
text
#010401
muted
#777977

Preview Lab

Preview with #042408

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

Preview Lab → · Contrast checker → · Palette generator →

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