#042602#042602

#042602 is a very dark, moderate green. Relative luminance 0.014; OKLCH L 23.5% C 0.074 H 141.7°. Best body text is #FFFFFF at 16.37:1 contrast (WCAG AA passes).

Color values

HEX#042602
RGBrgb(4, 38, 2)
HSLhsl(117, 90%, 8%)
HSVhsv(117, 95%, 15%)
CMYKcmyk(89.5%, 0%, 94.7%, 85.1%)
CIE-LABlab(12.07, -21.12, 16.64)
CIE-LCHlch(12.07, 26.88, 141.76°)
OKLaboklab(23.5% -0.0579 0.0457)
OKLCHoklch(23.5% 0.074 141.7)
XYZxyz(0.7541, 1.4163, 0.2911)
Luminance0.0142 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042602 #240226
analogous
#162602 #042602 #022612
triadic
#042602 #020426 #260204
tetradic
#042602 #021626 #240226 #261202
square
#042602 #021626 #240226 #261202
split-complementary
#042602 #120226 #260216
monochromatic
#031D02 #031D02 #042602 #0A6005 #109A08

Accessibility & contrast

On white

16.37
#042602 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#042602 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042602
16.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042602#FFFFFF#000000##FFFFFF
##0426021.0016.371.2816.37
#FFFFFF16.371.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#272100
Deuteranopia (green-blind)
#231F05
Tritanopia (blue-blind)
#00241F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #042602;
/* rgb */ color: rgb(4, 38, 2);
/* oklch */ color: oklch(23.5% 0.074 141.7);
Tailwind
colors: {
  custom: {
    50: '#486147',
    500: '#042602',
    950: '#000000',
  },
}
SCSS
$custom: #042602;
$custom-light: #486147;
$custom-dark: #000000;
JSON
{
  "hex": "#042602",
  "rgb": {
    "r": 4,
    "g": 38,
    "b": 2
  },
  "hsl": {
    "h": 116.667,
    "s": 90,
    "l": 7.843
  },
  "oklch": {
    "l": 0.23501,
    "c": 0.07376,
    "h": 141.7
  },
  "luminance": 0.01416
}

Semantic roles & 50–950 ramp

primary
#042602
secondary
#67186B
accent
#29FFF3
background
#F4F5F4
surface
#E7E9E6
border
#C3C5C2
text
#010500
muted
#777977

Preview Lab

Preview with #042602

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

Preview Lab → · Contrast checker → · Palette generator →

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