#041F02#041F02

#041F02 is a very dark, moderate green. Relative luminance 0.010; OKLCH L 21.0% C 0.064 H 141.4°. Best body text is #FFFFFF at 17.47:1 contrast (WCAG AA passes).

Color values

HEX#041F02
RGBrgb(4, 31, 2)
HSLhsl(116, 88%, 6%)
HSVhsv(116, 94%, 12%)
CMYKcmyk(87.1%, 0%, 93.5%, 87.8%)
CIE-LABlab(9.08, -16.55, 12.45)
CIE-LCHlch(9.08, 20.71, 143.04°)
OKLaboklab(21.02% -0.0499 0.0398)
OKLCHoklch(21.02% 0.064 141.4)
XYZxyz(0.5510, 1.0101, 0.2234)
Luminance0.0101 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041F02 #1D021F
analogous
#131F02 #041F02 #021F0F
triadic
#041F02 #02041F #1F0204
tetradic
#041F02 #02131F #1D021F #1F0F02
square
#041F02 #02131F #1D021F #1F0F02
split-complementary
#041F02 #0F021F #1F0213
monochromatic
#041D02 #041D02 #041F02 #0B5806 #139209

Accessibility & contrast

On white

17.47
#041F02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#041F02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #041F02
17.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041F02#FFFFFF#000000##FFFFFF
##041F021.0017.471.2017.47
#FFFFFF17.471.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#201B00
Deuteranopia (green-blind)
#1D1904
Tritanopia (blue-blind)
#011E19
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #041f02;
/* rgb */ color: rgb(4, 31, 2);
/* oklch */ color: oklch(21.0% 0.064 141.4);
Tailwind
colors: {
  custom: {
    50: '#475a47',
    500: '#041f02',
    950: '#000000',
  },
}
SCSS
$custom: #041f02;
$custom-light: #475a47;
$custom-dark: #000000;
JSON
{
  "hex": "#041f02",
  "rgb": {
    "r": 4,
    "g": 31,
    "b": 2
  },
  "hsl": {
    "h": 115.862,
    "s": 87.879,
    "l": 6.471
  },
  "oklch": {
    "l": 0.21017,
    "c": 0.0638,
    "h": 141.4
  },
  "luminance": 0.0101
}

Semantic roles & 50–950 ramp

primary
#041F02
secondary
#5F1865
accent
#2AFEEF
background
#F4F5F4
surface
#E6E9E6
border
#C2C5C2
text
#000400
muted
#777977

Preview Lab

Preview with #041F02

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

Preview Lab → · Contrast checker → · Palette generator →

#041F02 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva