#042902#042902

#042902 is a very dark, moderate green. Relative luminance 0.016; OKLCH L 24.5% C 0.078 H 141.8°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#042902
RGBrgb(4, 41, 2)
HSLhsl(117, 91%, 8%)
HSVhsv(117, 95%, 16%)
CMYKcmyk(90.2%, 0%, 95.1%, 83.9%)
CIE-LABlab(13.33, -22.47, 18.34)
CIE-LCHlch(13.33, 29.00, 140.78°)
OKLaboklab(24.55% -0.0612 0.0481)
OKLCHoklch(24.55% 0.078 141.8)
XYZxyz(0.8539, 1.6160, 0.3243)
Luminance0.0162 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042902 #270229
analogous
#172902 #042902 #022913
triadic
#042902 #020429 #290204
tetradic
#042902 #021729 #270229 #291302
square
#042902 #021729 #270229 #291302
split-complementary
#042902 #130229 #290217
monochromatic
#031D01 #031D01 #042902 #0A6305 #0F9E08

Accessibility & contrast

On white

15.87
#042902 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#042902 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042902
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042902#FFFFFF#000000##FFFFFF
##0429021.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A2400
Deuteranopia (green-blind)
#262105
Tritanopia (blue-blind)
#002721
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #042902;
/* rgb */ color: rgb(4, 41, 2);
/* oklch */ color: oklch(24.5% 0.078 141.8);
Tailwind
colors: {
  custom: {
    50: '#496347',
    500: '#042902',
    950: '#000000',
  },
}
SCSS
$custom: #042902;
$custom-light: #496347;
$custom-dark: #000000;
JSON
{
  "hex": "#042902",
  "rgb": {
    "r": 4,
    "g": 41,
    "b": 2
  },
  "hsl": {
    "h": 116.923,
    "s": 90.698,
    "l": 8.431
  },
  "oklch": {
    "l": 0.24549,
    "c": 0.07784,
    "h": 141.8
  },
  "luminance": 0.01616
}

Semantic roles & 50–950 ramp

primary
#042902
secondary
#6A196E
accent
#29FFF4
background
#F4F5F4
surface
#E7EAE6
border
#C3C6C2
text
#010500
muted
#777977

Preview Lab

Preview with #042902

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

Preview Lab → · Contrast checker → · Palette generator →

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