#042F09#042F09

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

Color values

HEX#042F09
RGBrgb(4, 47, 9)
HSLhsl(127, 84%, 10%)
HSVhsv(127, 91%, 18%)
CMYKcmyk(91.5%, 0%, 80.9%, 81.6%)
CIE-LABlab(15.89, -23.83, 18.81)
CIE-LCHlch(15.89, 30.36, 141.72°)
OKLaboklab(26.71% -0.0643 0.0454)
OKLCHoklch(26.71% 0.079 144.8)
XYZxyz(1.1158, 2.0784, 0.6008)
Luminance0.0208 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042F09 #2F042A
analogous
#142F04 #042F09 #042F1F
triadic
#042F09 #09042F #2F0904
tetradic
#042F09 #04142F #2F042A #2F1F04
square
#042F09 #04142F #2F042A #2F1F04
split-complementary
#042F09 #1F042F #2F0414
monochromatic
#021C05 #021C05 #042F09 #096714 #0EA01F

Accessibility & contrast

On white

14.83
#042F09 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#042F09 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042F09
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042F09#FFFFFF#000000##FFFFFF
##042F091.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302A05
Deuteranopia (green-blind)
#2B260D
Tritanopia (blue-blind)
#002D27
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #042f09;
/* rgb */ color: rgb(4, 47, 9);
/* oklch */ color: oklch(26.7% 0.079 144.8);
Tailwind
colors: {
  custom: {
    50: '#4c684b',
    500: '#042f09',
    950: '#000000',
  },
}
SCSS
$custom: #042f09;
$custom-light: #4c684b;
$custom-dark: #000000;
JSON
{
  "hex": "#042f09",
  "rgb": {
    "r": 4,
    "g": 47,
    "b": 9
  },
  "hsl": {
    "h": 126.977,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.2671,
    "c": 0.07872,
    "h": 144.8
  },
  "luminance": 0.02079
}

Semantic roles & 50–950 ramp

primary
#042F09
secondary
#721D68
accent
#2DE3FB
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010601
muted
#777A77

Preview Lab

Preview with #042F09

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

Preview Lab → · Contrast checker → · Palette generator →

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