#181F02#181F02

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

Color values

HEX#181F02
RGBrgb(24, 31, 2)
HSLhsl(74, 88%, 6%)
HSVhsv(74, 94%, 12%)
CMYKcmyk(22.6%, 0%, 93.5%, 87.8%)
CIE-LABlab(10.40, -8.89, 14.51)
CIE-LCHlch(10.40, 17.02, 121.48°)
OKLaboklab(22.46% -0.0263 0.0429)
OKLCHoklch(22.46% 0.05 121.5)
XYZxyz(0.8776, 1.1785, 0.2387)
Luminance0.0118 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F02 #09021F
analogous
#1F1802 #181F02 #0A1F02
triadic
#181F02 #02181F #1F0218
tetradic
#181F02 #021F18 #09021F #1F020A
square
#181F02 #021F18 #09021F #1F020A
split-complementary
#181F02 #020A1F #18021F
monochromatic
#161D02 #161D02 #181F02 #455806 #719209

Accessibility & contrast

On white

16.99
#181F02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181F02
16.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F02#FFFFFF#000000##FFFFFF
##181F021.0016.991.2416.99
#FFFFFF16.991.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#221C00
Deuteranopia (green-blind)
#211C04
Tritanopia (blue-blind)
#1A1D19
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #181f02;
/* rgb */ color: rgb(24, 31, 2);
/* oklch */ color: oklch(22.5% 0.050 121.5);
Tailwind
colors: {
  custom: {
    50: '#545a47',
    500: '#181f02',
    950: '#000000',
  },
}
SCSS
$custom: #181f02;
$custom-light: #545a47;
$custom-dark: #000000;
JSON
{
  "hex": "#181f02",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 2
  },
  "hsl": {
    "h": 74.483,
    "s": 87.879,
    "l": 6.471
  },
  "oklch": {
    "l": 0.22455,
    "c": 0.05027,
    "h": 121.5
  },
  "luminance": 0.01179
}

Semantic roles & 50–950 ramp

primary
#181F02
secondary
#2B1865
accent
#2AFE5D
background
#F4F5F4
surface
#E7E9E6
border
#C3C5C2
text
#030300
muted
#787877

Preview Lab

Preview with #181F02

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

Preview Lab → · Contrast checker → · Palette generator →

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