#042F06#042F06

#042F06 is a dark, moderate green. Relative luminance 0.021; OKLCH L 26.7% C 0.082 H 143.6°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#042F06
RGBrgb(4, 47, 6)
HSLhsl(123, 84%, 10%)
HSVhsv(123, 91%, 18%)
CMYKcmyk(91.5%, 0%, 87.2%, 81.6%)
CIE-LABlab(15.86, -24.25, 19.99)
CIE-LCHlch(15.86, 31.43, 140.50°)
OKLaboklab(26.67% -0.0657 0.0485)
OKLCHoklch(26.67% 0.082 143.6)
XYZxyz(1.0994, 2.0719, 0.5142)
Luminance0.0207 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042F06 #2F042D
analogous
#172F04 #042F06 #042F1C
triadic
#042F06 #06042F #2F0604
tetradic
#042F06 #04172F #2F042D #2F1C04
square
#042F06 #04172F #2F042D #2F1C04
split-complementary
#042F06 #1C042F #2F0417
monochromatic
#021C04 #021C04 #042F06 #09670D #0EA014

Accessibility & contrast

On white

14.85
#042F06 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #042F06
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042F06#FFFFFF#000000##FFFFFF
##042F061.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302A02
Deuteranopia (green-blind)
#2B260A
Tritanopia (blue-blind)
#002D27
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #042f06;
/* rgb */ color: rgb(4, 47, 6);
/* oklch */ color: oklch(26.7% 0.082 143.6);
Tailwind
colors: {
  custom: {
    50: '#4c6849',
    500: '#042f06',
    950: '#000000',
  },
}
SCSS
$custom: #042f06;
$custom-light: #4c6849;
$custom-dark: #000000;
JSON
{
  "hex": "#042f06",
  "rgb": {
    "r": 4,
    "g": 47,
    "b": 6
  },
  "hsl": {
    "h": 122.791,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.26671,
    "c": 0.0816,
    "h": 143.6
  },
  "luminance": 0.02072
}

Semantic roles & 50–950 ramp

primary
#042F06
secondary
#721D6E
accent
#2DF1FB
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010601
muted
#777A77

Preview Lab

Preview with #042F06

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

Preview Lab → · Contrast checker → · Palette generator →

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