#042D0F#042D0F

#042D0F is a dark, moderate green. Relative luminance 0.019; OKLCH L 26.1% C 0.070 H 148.2°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#042D0F
RGBrgb(4, 45, 15)
HSLhsl(136, 84%, 10%)
HSVhsv(136, 91%, 18%)
CMYKcmyk(91.1%, 0%, 66.7%, 82.4%)
CIE-LABlab(15.15, -22.06, 15.12)
CIE-LCHlch(15.15, 26.74, 145.56°)
OKLaboklab(26.12% -0.0593 0.0368)
OKLCHoklch(26.12% 0.07 148.2)
XYZxyz(1.0746, 1.9369, 0.7691)
Luminance0.0194 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042D0F #2D0422
analogous
#0D2D04 #042D0F #042D24
triadic
#042D0F #0F042D #2D0F04
tetradic
#042D0F #040D2D #2D0422 #2D2404
square
#042D0F #040D2D #2D0422 #2D2404
split-complementary
#042D0F #24042D #2D040D
monochromatic
#021C09 #021C09 #042D0F #096522 #0E9D34

Accessibility & contrast

On white

15.14
#042D0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#042D0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042D0F
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042D0F#FFFFFF#000000##FFFFFF
##042D0F1.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E280C
Deuteranopia (green-blind)
#292511
Tritanopia (blue-blind)
#002C26
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #042d0f;
/* rgb */ color: rgb(4, 45, 15);
/* oklch */ color: oklch(26.1% 0.070 148.2);
Tailwind
colors: {
  custom: {
    50: '#4b664e',
    500: '#042d0f',
    950: '#000000',
  },
}
SCSS
$custom: #042d0f;
$custom-light: #4b664e;
$custom-dark: #000000;
JSON
{
  "hex": "#042d0f",
  "rgb": {
    "r": 4,
    "g": 45,
    "b": 15
  },
  "hsl": {
    "h": 136.098,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.2612,
    "c": 0.06975,
    "h": 148.2
  },
  "luminance": 0.01937
}

Semantic roles & 50–950 ramp

primary
#042D0F
secondary
#701D5A
accent
#2EC3FA
background
#F4F6F4
surface
#E7EBE7
border
#C3C6C3
text
#010601
muted
#777A77

Preview Lab

Preview with #042D0F

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

Preview Lab → · Contrast checker → · Palette generator →

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