#172F0B#172F0B

#172F0B is a dark, moderate green. Relative luminance 0.022; OKLCH L 27.6% C 0.066 H 136.8°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#172F0B
RGBrgb(23, 47, 11)
HSLhsl(100, 62%, 11%)
HSVhsv(100, 77%, 18%)
CMYKcmyk(51.1%, 0%, 76.6%, 81.6%)
CIE-LABlab(16.70, -17.49, 19.15)
CIE-LCHlch(16.70, 25.94, 132.40°)
OKLaboklab(27.6% -0.0484 0.0455)
OKLCHoklch(27.6% 0.066 136.8)
XYZxyz(1.4302, 2.2393, 0.6734)
Luminance0.0224 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F0B #230B2F
analogous
#292F0B #172F0B #0B2F11
triadic
#172F0B #0B172F #2F0B17
tetradic
#172F0B #0B292F #230B2F #2F110B
square
#172F0B #0B292F #230B2F #2F110B
split-complementary
#172F0B #110B2F #2F0B29
monochromatic
#0C1906 #0C1906 #172F0B #2F6117 #489222

Accessibility & contrast

On white

14.50
#172F0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#172F0B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F0B
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F0B#FFFFFF#000000##FFFFFF
##172F0B1.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#312B07
Deuteranopia (green-blind)
#2E280E
Tritanopia (blue-blind)
#162D27
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #172f0b;
/* rgb */ color: rgb(23, 47, 11);
/* oklch */ color: oklch(27.6% 0.066 136.8);
Tailwind
colors: {
  custom: {
    50: '#56674c',
    500: '#172f0b',
    950: '#000000',
  },
}
SCSS
$custom: #172f0b;
$custom-light: #56674c;
$custom-dark: #000000;
JSON
{
  "hex": "#172f0b",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 11
  },
  "hsl": {
    "h": 100,
    "s": 62.069,
    "l": 11.373
  },
  "oklch": {
    "l": 0.27597,
    "c": 0.06642,
    "h": 136.8
  },
  "luminance": 0.02239
}

Semantic roles & 50–950 ramp

primary
#172F0B
secondary
#562A6B
accent
#43E5AF
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#030601
muted
#787A77

Preview Lab

Preview with #172F0B

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

Preview Lab → · Contrast checker → · Palette generator →

#172F0B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva