#042802#042802

#042802 is a very dark, moderate green. Relative luminance 0.015; OKLCH L 24.2% C 0.076 H 141.8°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#042802
RGBrgb(4, 40, 2)
HSLhsl(117, 90%, 8%)
HSVhsv(117, 95%, 16%)
CMYKcmyk(90%, 0%, 95%, 84.3%)
CIE-LABlab(12.91, -22.06, 17.78)
CIE-LCHlch(12.91, 28.33, 141.13°)
OKLaboklab(24.2% -0.0601 0.0473)
OKLCHoklch(24.2% 0.076 141.8)
XYZxyz(0.8198, 1.5477, 0.3129)
Luminance0.0155 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042802 #260228
analogous
#172802 #042802 #022813
triadic
#042802 #020428 #280204
tetradic
#042802 #021728 #260228 #281302
square
#042802 #021728 #260228 #281302
split-complementary
#042802 #130228 #280217
monochromatic
#031D01 #031D01 #042802 #0A6205 #109D08

Accessibility & contrast

On white

16.04
#042802 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#042802 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042802
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042802#FFFFFF#000000##FFFFFF
##0428021.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#292300
Deuteranopia (green-blind)
#252005
Tritanopia (blue-blind)
#002621
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #042802;
/* rgb */ color: rgb(4, 40, 2);
/* oklch */ color: oklch(24.2% 0.076 141.8);
Tailwind
colors: {
  custom: {
    50: '#496247',
    500: '#042802',
    950: '#000000',
  },
}
SCSS
$custom: #042802;
$custom-light: #496247;
$custom-dark: #000000;
JSON
{
  "hex": "#042802",
  "rgb": {
    "r": 4,
    "g": 40,
    "b": 2
  },
  "hsl": {
    "h": 116.842,
    "s": 90.476,
    "l": 8.235
  },
  "oklch": {
    "l": 0.24201,
    "c": 0.07649,
    "h": 141.8
  },
  "luminance": 0.01548
}

Semantic roles & 50–950 ramp

primary
#042802
secondary
#69196D
accent
#29FFF4
background
#F4F5F4
surface
#E7EAE6
border
#C3C6C2
text
#010500
muted
#777977

Preview Lab

Preview with #042802

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

Preview Lab → · Contrast checker → · Palette generator →

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