#042F15#042F15

#042F15 is a dark, moderate green. Relative luminance 0.021; OKLCH L 26.9% C 0.066 H 152.0°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#042F15
RGBrgb(4, 47, 21)
HSLhsl(144, 84%, 10%)
HSVhsv(144, 91%, 18%)
CMYKcmyk(91.5%, 0%, 55.3%, 81.6%)
CIE-LABlab(16.07, -21.74, 12.67)
CIE-LCHlch(16.07, 25.16, 149.77°)
OKLaboklab(26.91% -0.0584 0.0311)
OKLCHoklch(26.91% 0.066 152)
XYZxyz(1.2018, 2.1128, 1.0538)
Luminance0.0211 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042F15 #2F041E
analogous
#082F04 #042F15 #042F2B
triadic
#042F15 #15042F #2F1504
tetradic
#042F15 #04082F #2F041E #2F2B04
square
#042F15 #04082F #2F041E #2F2B04
split-complementary
#042F15 #2B042F #2F0408
monochromatic
#021C0D #021C0D #042F15 #09672E #0EA047

Accessibility & contrast

On white

14.76
#042F15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #042F15
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042F15#FFFFFF#000000##FFFFFF
##042F151.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2A13
Deuteranopia (green-blind)
#2A2617
Tritanopia (blue-blind)
#002E29
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #042f15;
/* rgb */ color: rgb(4, 47, 21);
/* oklch */ color: oklch(26.9% 0.066 152.0);
Tailwind
colors: {
  custom: {
    50: '#4c6852',
    500: '#042f15',
    950: '#000000',
  },
}
SCSS
$custom: #042f15;
$custom-light: #4c6852;
$custom-dark: #000000;
JSON
{
  "hex": "#042f15",
  "rgb": {
    "r": 4,
    "g": 47,
    "b": 21
  },
  "hsl": {
    "h": 143.721,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.26911,
    "c": 0.06619,
    "h": 152
  },
  "luminance": 0.02113
}

Semantic roles & 50–950 ramp

primary
#042F15
secondary
#721D50
accent
#2DA9FB
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010602
muted
#777A78

Preview Lab

Preview with #042F15

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

Preview Lab → · Contrast checker → · Palette generator →

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