#042F0A#042F0A

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

Color values

HEX#042F0A
RGBrgb(4, 47, 10)
HSLhsl(128, 84%, 10%)
HSVhsv(128, 91%, 18%)
CMYKcmyk(91.5%, 0%, 78.7%, 81.6%)
CIE-LABlab(15.90, -23.70, 18.42)
CIE-LCHlch(15.90, 30.01, 142.15°)
OKLaboklab(26.72% -0.0639 0.0444)
OKLCHoklch(26.72% 0.078 145.2)
XYZxyz(1.1213, 2.0806, 0.6296)
Luminance0.0208 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042F0A #2F0429
analogous
#142F04 #042F0A #042F1F
triadic
#042F0A #0A042F #2F0A04
tetradic
#042F0A #04142F #2F0429 #2F1F04
square
#042F0A #04142F #2F0429 #2F1F04
split-complementary
#042F0A #1F042F #2F0414
monochromatic
#021C06 #021C06 #042F0A #096716 #0EA022

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##042F0A#FFFFFF#000000##FFFFFF
##042F0A1.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)
#302A06
Deuteranopia (green-blind)
#2B260D
Tritanopia (blue-blind)
#002E27
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #042f0a;
/* rgb */ color: rgb(4, 47, 10);
/* oklch */ color: oklch(26.7% 0.078 145.2);
Tailwind
colors: {
  custom: {
    50: '#4c684b',
    500: '#042f0a',
    950: '#000000',
  },
}
SCSS
$custom: #042f0a;
$custom-light: #4c684b;
$custom-dark: #000000;
JSON
{
  "hex": "#042f0a",
  "rgb": {
    "r": 4,
    "g": 47,
    "b": 10
  },
  "hsl": {
    "h": 128.372,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.26722,
    "c": 0.0778,
    "h": 145.2
  },
  "luminance": 0.02081
}

Semantic roles & 50–950 ramp

primary
#042F0A
secondary
#721D66
accent
#2DDEFB
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010601
muted
#777A77

Preview Lab

Preview with #042F0A

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

Preview Lab → · Contrast checker → · Palette generator →

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