#181F04#181F04

#181F04 is a very dark, muted yellow-green. Relative luminance 0.012; OKLCH L 22.5% C 0.047 H 122.2°. Best body text is #FFFFFF at 16.98:1 contrast (WCAG AA passes).

Color values

HEX#181F04
RGBrgb(24, 31, 4)
HSLhsl(76, 77%, 7%)
HSVhsv(76, 87%, 12%)
CMYKcmyk(22.6%, 0%, 87.1%, 87.8%)
CIE-LABlab(10.43, -8.59, 13.74)
CIE-LCHlch(10.43, 16.21, 122.01°)
OKLaboklab(22.49% -0.025 0.0398)
OKLCHoklch(22.49% 0.047 122.2)
XYZxyz(0.8886, 1.1829, 0.2964)
Luminance0.0118 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F04 #0B041F
analogous
#1F1904 #181F04 #0B1F04
triadic
#181F04 #04181F #1F0418
tetradic
#181F04 #041F19 #0B041F #1F040B
square
#181F04 #041F19 #0B041F #1F040B
split-complementary
#181F04 #040B1F #19041F
monochromatic
#151B03 #151B03 #181F04 #42550B #6C8B12

Accessibility & contrast

On white

16.98
#181F04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#181F04 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F04
16.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F04#FFFFFF#000000##FFFFFF
##181F041.0016.981.2416.98
#FFFFFF16.981.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#211C02
Deuteranopia (green-blind)
#211C05
Tritanopia (blue-blind)
#1A1D19
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #181f04;
/* rgb */ color: rgb(24, 31, 4);
/* oklch */ color: oklch(22.5% 0.047 122.2);
Tailwind
colors: {
  custom: {
    50: '#545a48',
    500: '#181f04',
    950: '#000000',
  },
}
SCSS
$custom: #181f04;
$custom-light: #545a48;
$custom-dark: #000000;
JSON
{
  "hex": "#181f04",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 4
  },
  "hsl": {
    "h": 75.556,
    "s": 77.143,
    "l": 6.863
  },
  "oklch": {
    "l": 0.22491,
    "c": 0.04699,
    "h": 122.2
  },
  "luminance": 0.01183
}

Semantic roles & 50–950 ramp

primary
#181F04
secondary
#2F1D62
accent
#34F466
background
#F4F5F4
surface
#E7E9E6
border
#C3C5C2
text
#030300
muted
#787877

Preview Lab

Preview with #181F04

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

Preview Lab → · Contrast checker → · Palette generator →

#181F04 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva