#042F0C#042F0C

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

Color values

HEX#042F0C
RGBrgb(4, 47, 12)
HSLhsl(131, 84%, 10%)
HSVhsv(131, 91%, 18%)
CMYKcmyk(91.5%, 0%, 74.5%, 81.6%)
CIE-LABlab(15.93, -23.41, 17.59)
CIE-LCHlch(15.93, 29.28, 143.08°)
OKLaboklab(26.75% -0.063 0.0423)
OKLCHoklch(26.75% 0.076 146.1)
XYZxyz(1.1329, 2.0853, 0.6905)
Luminance0.0209 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042F0C #2F0427
analogous
#112F04 #042F0C #042F22
triadic
#042F0C #0C042F #2F0C04
tetradic
#042F0C #04112F #2F0427 #2F2204
square
#042F0C #04112F #2F0427 #2F2204
split-complementary
#042F0C #22042F #2F0411
monochromatic
#021C07 #021C07 #042F0C #09671A #0EA029

Accessibility & contrast

On white

14.82
#042F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #042F0C
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042F0C#FFFFFF#000000##FFFFFF
##042F0C1.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #042f0c;
/* rgb */ color: rgb(4, 47, 12);
/* oklch */ color: oklch(26.8% 0.076 146.1);
Tailwind
colors: {
  custom: {
    50: '#4c684c',
    500: '#042f0c',
    950: '#000000',
  },
}
SCSS
$custom: #042f0c;
$custom-light: #4c684c;
$custom-dark: #000000;
JSON
{
  "hex": "#042f0c",
  "rgb": {
    "r": 4,
    "g": 47,
    "b": 12
  },
  "hsl": {
    "h": 131.163,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.2675,
    "c": 0.07591,
    "h": 146.1
  },
  "luminance": 0.02085
}

Semantic roles & 50–950 ramp

primary
#042F0C
secondary
#721D62
accent
#2DD4FB
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010601
muted
#777A77

Preview Lab

Preview with #042F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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