#042008#042008

#042008 is a very dark, muted green. Relative luminance 0.011; OKLCH L 21.5% C 0.057 H 146.4°. Best body text is #FFFFFF at 17.28:1 contrast (WCAG AA passes).

Color values

HEX#042008
RGBrgb(4, 32, 8)
HSLhsl(129, 78%, 7%)
HSVhsv(129, 88%, 13%)
CMYKcmyk(87.5%, 0%, 75%, 87.5%)
CIE-LABlab(9.61, -16.42, 10.77)
CIE-LCHlch(9.61, 19.64, 146.74°)
OKLaboklab(21.5% -0.0471 0.0313)
OKLCHoklch(21.5% 0.057 146.4)
XYZxyz(0.6104, 1.0763, 0.4053)
Luminance0.0108 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042008 #20041C
analogous
#0E2004 #042008 #042016
triadic
#042008 #080420 #200804
tetradic
#042008 #040E20 #20041C #201604
square
#042008 #040E20 #20041C #201604
split-complementary
#042008 #160420 #20040E
monochromatic
#031B07 #031B07 #042008 #0B5616 #128D23

Accessibility & contrast

On white

17.28
#042008 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#042008 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042008
17.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042008#FFFFFF#000000##FFFFFF
##0420081.0017.281.2217.28
#FFFFFF17.281.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#211C06
Deuteranopia (green-blind)
#1D1A0A
Tritanopia (blue-blind)
#001F1B
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #042008;
/* rgb */ color: rgb(4, 32, 8);
/* oklch */ color: oklch(21.5% 0.057 146.4);
Tailwind
colors: {
  custom: {
    50: '#475b4a',
    500: '#042008',
    950: '#000000',
  },
}
SCSS
$custom: #042008;
$custom-light: #475b4a;
$custom-dark: #000000;
JSON
{
  "hex": "#042008",
  "rgb": {
    "r": 4,
    "g": 32,
    "b": 8
  },
  "hsl": {
    "h": 128.571,
    "s": 77.778,
    "l": 7.059
  },
  "oklch": {
    "l": 0.21496,
    "c": 0.05657,
    "h": 146.4
  },
  "luminance": 0.01076
}

Semantic roles & 50–950 ramp

primary
#042008
secondary
#631D59
accent
#34D9F4
background
#F4F5F4
surface
#E6E9E7
border
#C2C5C3
text
#000401
muted
#777977

Preview Lab

Preview with #042008

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

Preview Lab → · Contrast checker → · Palette generator →

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