#042F08#042F08

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

Color values

HEX#042F08
RGBrgb(4, 47, 8)
HSLhsl(126, 84%, 10%)
HSVhsv(126, 91%, 18%)
CMYKcmyk(91.5%, 0%, 83%, 81.6%)
CIE-LABlab(15.88, -23.97, 19.20)
CIE-LCHlch(15.88, 30.72, 141.30°)
OKLaboklab(26.7% -0.0648 0.0464)
OKLCHoklch(26.7% 0.08 144.4)
XYZxyz(1.1103, 2.0762, 0.5719)
Luminance0.0208 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042F08 #2F042B
analogous
#162F04 #042F08 #042F1D
triadic
#042F08 #08042F #2F0804
tetradic
#042F08 #04162F #2F042B #2F1D04
square
#042F08 #04162F #2F042B #2F1D04
split-complementary
#042F08 #1D042F #2F0416
monochromatic
#021C05 #021C05 #042F08 #096712 #0EA01B

Accessibility & contrast

On white

14.84
#042F08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #042F08
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042F08#FFFFFF#000000##FFFFFF
##042F081.0014.841.4214.84
#FFFFFF14.841.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302A04
Deuteranopia (green-blind)
#2B260C
Tritanopia (blue-blind)
#002D27
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #042f08;
/* rgb */ color: rgb(4, 47, 8);
/* oklch */ color: oklch(26.7% 0.080 144.4);
Tailwind
colors: {
  custom: {
    50: '#4c684a',
    500: '#042f08',
    950: '#000000',
  },
}
SCSS
$custom: #042f08;
$custom-light: #4c684a;
$custom-dark: #000000;
JSON
{
  "hex": "#042f08",
  "rgb": {
    "r": 4,
    "g": 47,
    "b": 8
  },
  "hsl": {
    "h": 125.581,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.26697,
    "c": 0.07966,
    "h": 144.4
  },
  "luminance": 0.02076
}

Semantic roles & 50–950 ramp

primary
#042F08
secondary
#721D6A
accent
#2DE7FB
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010601
muted
#777A77

Preview Lab

Preview with #042F08

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

Preview Lab → · Contrast checker → · Palette generator →

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