#173F04#173F04

#173F04 is a dark, moderate green. Relative luminance 0.037; OKLCH L 32.6% C 0.096 H 138.1°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#173F04
RGBrgb(23, 63, 4)
HSLhsl(101, 88%, 13%)
HSVhsv(101, 94%, 25%)
CMYKcmyk(63.5%, 0%, 93.7%, 75.3%)
CIE-LABlab(22.81, -25.83, 28.97)
CIE-LCHlch(22.81, 38.81, 131.72°)
OKLaboklab(32.61% -0.0715 0.0643)
OKLCHoklch(32.61% 0.096 138.1)
XYZxyz(2.1527, 3.7458, 0.7244)
Luminance0.0375 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173F04 #2C043F
analogous
#343F04 #173F04 #043F0E
triadic
#173F04 #04173F #3F0417
tetradic
#173F04 #04343F #2C043F #3F0E04
square
#173F04 #04343F #2C043F #3F0E04
split-complementary
#173F04 #0E043F #3F0434
monochromatic
#0B1D02 #0B1D02 #173F04 #2C7908 #41B20B

Accessibility & contrast

On white

12.01
#173F04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#173F04 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173F04
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173F04#FFFFFF#000000##FFFFFF
##173F041.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#413800
Deuteranopia (green-blind)
#3C350B
Tritanopia (blue-blind)
#133C34
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #173f04;
/* rgb */ color: rgb(23, 63, 4);
/* oklch */ color: oklch(32.6% 0.096 138.1);
Tailwind
colors: {
  custom: {
    50: '#5a744a',
    500: '#173f04',
    950: '#000000',
  },
}
SCSS
$custom: #173f04;
$custom-light: #5a744a;
$custom-dark: #000000;
JSON
{
  "hex": "#173f04",
  "rgb": {
    "r": 23,
    "g": 63,
    "b": 4
  },
  "hsl": {
    "h": 100.678,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.32608,
    "c": 0.09617,
    "h": 138.1
  },
  "luminance": 0.03746
}

Semantic roles & 50–950 ramp

primary
#173F04
secondary
#611E80
accent
#2AFEBA
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#040801
muted
#797B77

Preview Lab

Preview with #173F04

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

Preview Lab → · Contrast checker → · Palette generator →

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