#042F0D#042F0D

#042F0D is a dark, moderate green. Relative luminance 0.021; OKLCH L 26.8% C 0.075 H 146.6°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#042F0D
RGBrgb(4, 47, 13)
HSLhsl(133, 84%, 10%)
HSVhsv(133, 91%, 18%)
CMYKcmyk(91.5%, 0%, 72.3%, 81.6%)
CIE-LABlab(15.94, -23.26, 17.14)
CIE-LCHlch(15.94, 28.89, 143.62°)
OKLaboklab(26.76% -0.0626 0.0412)
OKLCHoklch(26.76% 0.075 146.6)
XYZxyz(1.1391, 2.0878, 0.7236)
Luminance0.0209 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042F0D #2F0426
analogous
#112F04 #042F0D #042F22
triadic
#042F0D #0D042F #2F0D04
tetradic
#042F0D #04112F #2F0426 #2F2204
square
#042F0D #04112F #2F0426 #2F2204
split-complementary
#042F0D #22042F #2F0411
monochromatic
#021C08 #021C08 #042F0D #09671D #0EA02C

Accessibility & contrast

On white

14.81
#042F0D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #042F0D
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042F0D#FFFFFF#000000##FFFFFF
##042F0D1.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302A09
Deuteranopia (green-blind)
#2B2610
Tritanopia (blue-blind)
#002E28
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #042f0d;
/* rgb */ color: rgb(4, 47, 13);
/* oklch */ color: oklch(26.8% 0.075 146.6);
Tailwind
colors: {
  custom: {
    50: '#4c684d',
    500: '#042f0d',
    950: '#000000',
  },
}
SCSS
$custom: #042f0d;
$custom-light: #4c684d;
$custom-dark: #000000;
JSON
{
  "hex": "#042f0d",
  "rgb": {
    "r": 4,
    "g": 47,
    "b": 13
  },
  "hsl": {
    "h": 132.558,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.26764,
    "c": 0.07492,
    "h": 146.6
  },
  "luminance": 0.02088
}

Semantic roles & 50–950 ramp

primary
#042F0D
secondary
#721D60
accent
#2DD0FB
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010601
muted
#777A77

Preview Lab

Preview with #042F0D

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

Preview Lab → · Contrast checker → · Palette generator →

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