#042F02#042F02

#042F02 is a dark, moderate green. Relative luminance 0.021; OKLCH L 26.6% C 0.086 H 142.0°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#042F02
RGBrgb(4, 47, 2)
HSLhsl(117, 92%, 10%)
HSVhsv(117, 96%, 18%)
CMYKcmyk(91.5%, 0%, 95.7%, 81.6%)
CIE-LABlab(15.81, -24.81, 21.56)
CIE-LCHlch(15.81, 32.87, 139.01°)
OKLaboklab(26.62% -0.0675 0.0528)
OKLCHoklch(26.62% 0.086 142)
XYZxyz(1.0775, 2.0631, 0.3989)
Luminance0.0206 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042F02 #2D022F
analogous
#1B2F02 #042F02 #022F17
triadic
#042F02 #02042F #2F0204
tetradic
#042F02 #021B2F #2D022F #2F1702
square
#042F02 #021B2F #2D022F #2F1702
split-complementary
#042F02 #17022F #2F021B
monochromatic
#021D01 #021D01 #042F02 #096A04 #0EA407

Accessibility & contrast

On white

14.87
#042F02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#042F02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042F02
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042F02#FFFFFF#000000##FFFFFF
##042F021.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302900
Deuteranopia (green-blind)
#2C2606
Tritanopia (blue-blind)
#002D27
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #042f02;
/* rgb */ color: rgb(4, 47, 2);
/* oklch */ color: oklch(26.6% 0.086 142.0);
Tailwind
colors: {
  custom: {
    50: '#4c6848',
    500: '#042f02',
    950: '#000000',
  },
}
SCSS
$custom: #042f02;
$custom-light: #4c6848;
$custom-dark: #000000;
JSON
{
  "hex": "#042f02",
  "rgb": {
    "r": 4,
    "g": 47,
    "b": 2
  },
  "hsl": {
    "h": 117.333,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.26619,
    "c": 0.08572,
    "h": 142
  },
  "luminance": 0.02063
}

Semantic roles & 50–950 ramp

primary
#042F02
secondary
#701974
accent
#29FFF5
background
#F4F6F4
surface
#E7EBE6
border
#C3C6C2
text
#010600
muted
#777A77

Preview Lab

Preview with #042F02

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

Preview Lab → · Contrast checker → · Palette generator →

#042F02 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva