#042F0E#042F0E

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

Color values

HEX#042F0E
RGBrgb(4, 47, 14)
HSLhsl(134, 84%, 10%)
HSVhsv(134, 91%, 18%)
CMYKcmyk(91.5%, 0%, 70.2%, 81.6%)
CIE-LABlab(15.95, -23.09, 16.66)
CIE-LCHlch(15.95, 28.47, 144.19°)
OKLaboklab(26.78% -0.0621 0.0401)
OKLCHoklch(26.78% 0.074 147.2)
XYZxyz(1.1458, 2.0904, 0.7585)
Luminance0.0209 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042F0E #2F0425
analogous
#102F04 #042F0E #042F23
triadic
#042F0E #0E042F #2F0E04
tetradic
#042F0E #04102F #2F0425 #2F2304
square
#042F0E #04102F #2F0425 #2F2304
split-complementary
#042F0E #23042F #2F0410
monochromatic
#021C08 #021C08 #042F0E #09671F #0EA030

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##042F0E#FFFFFF#000000##FFFFFF
##042F0E1.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)
#302A0B
Deuteranopia (green-blind)
#2B2611
Tritanopia (blue-blind)
#002E28
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #042f0e;
/* rgb */ color: rgb(4, 47, 14);
/* oklch */ color: oklch(26.8% 0.074 147.2);
Tailwind
colors: {
  custom: {
    50: '#4c684d',
    500: '#042f0e',
    950: '#000000',
  },
}
SCSS
$custom: #042f0e;
$custom-light: #4c684d;
$custom-dark: #000000;
JSON
{
  "hex": "#042f0e",
  "rgb": {
    "r": 4,
    "g": 47,
    "b": 14
  },
  "hsl": {
    "h": 133.953,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.2678,
    "c": 0.07391,
    "h": 147.2
  },
  "luminance": 0.02091
}

Semantic roles & 50–950 ramp

primary
#042F0E
secondary
#721D5E
accent
#2DCBFB
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010601
muted
#777A77

Preview Lab

Preview with #042F0E

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

Preview Lab → · Contrast checker → · Palette generator →

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