#173F0C#173F0C

#173F0C is a dark, moderate green. Relative luminance 0.038; OKLCH L 32.7% C 0.090 H 139.8°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#173F0C
RGBrgb(23, 63, 12)
HSLhsl(107, 68%, 15%)
HSVhsv(107, 81%, 25%)
CMYKcmyk(63.5%, 0%, 81%, 75.3%)
CIE-LABlab(22.87, -25.13, 25.73)
CIE-LCHlch(22.87, 35.96, 134.32°)
OKLaboklab(32.68% -0.069 0.0584)
OKLCHoklch(32.68% 0.09 139.8)
XYZxyz(2.1971, 3.7635, 0.9584)
Luminance0.0376 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173F0C #340C3F
analogous
#313F0C #173F0C #0C3F1B
triadic
#173F0C #0C173F #3F0C17
tetradic
#173F0C #0C313F #340C3F #3F1B0C
square
#173F0C #0C313F #340C3F #3F1B0C
split-complementary
#173F0C #1B0C3F #3F0C31
monochromatic
#091A05 #091A05 #173F0C #2A7216 #3DA620

Accessibility & contrast

On white

11.98
#173F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #173F0C
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173F0C#FFFFFF#000000##FFFFFF
##173F0C1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#413905
Deuteranopia (green-blind)
#3C3511
Tritanopia (blue-blind)
#133D35
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #173f0c;
/* rgb */ color: rgb(23, 63, 12);
/* oklch */ color: oklch(32.7% 0.090 139.8);
Tailwind
colors: {
  custom: {
    50: '#5a744e',
    500: '#173f0c',
    950: '#000000',
  },
}
SCSS
$custom: #173f0c;
$custom-light: #5a744e;
$custom-dark: #000000;
JSON
{
  "hex": "#173f0c",
  "rgb": {
    "r": 23,
    "g": 63,
    "b": 12
  },
  "hsl": {
    "h": 107.059,
    "s": 68,
    "l": 14.706
  },
  "oklch": {
    "l": 0.32678,
    "c": 0.09042,
    "h": 139.8
  },
  "luminance": 0.03764
}

Semantic roles & 50–950 ramp

primary
#173F0C
secondary
#6A2C7B
accent
#3DEBC5
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#040802
muted
#797B78

Preview Lab

Preview with #173F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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