#172F0C#172F0C

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

Color values

HEX#172F0C
RGBrgb(23, 47, 12)
HSLhsl(101, 59%, 12%)
HSVhsv(101, 74%, 18%)
CMYKcmyk(51.1%, 0%, 74.5%, 81.6%)
CIE-LABlab(16.71, -17.37, 18.73)
CIE-LCHlch(16.71, 25.54, 132.85°)
OKLaboklab(27.61% -0.048 0.0445)
OKLCHoklch(27.61% 0.065 137.2)
XYZxyz(1.4362, 2.2417, 0.7048)
Luminance0.0224 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F0C #240C2F
analogous
#292F0C #172F0C #0C2F13
triadic
#172F0C #0C172F #2F0C17
tetradic
#172F0C #0C292F #240C2F #2F130C
square
#172F0C #0C292F #240C2F #2F130C
split-complementary
#172F0C #130C2F #2F0C29
monochromatic
#0C1806 #0C1806 #172F0C #2F6018 #479125

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##172F0C#FFFFFF#000000##FFFFFF
##172F0C1.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)
#312B08
Deuteranopia (green-blind)
#2D280F
Tritanopia (blue-blind)
#162D28
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #172f0c;
/* rgb */ color: rgb(23, 47, 12);
/* oklch */ color: oklch(27.6% 0.065 137.2);
Tailwind
colors: {
  custom: {
    50: '#56674c',
    500: '#172f0c',
    950: '#000000',
  },
}
SCSS
$custom: #172f0c;
$custom-light: #56674c;
$custom-dark: #000000;
JSON
{
  "hex": "#172f0c",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 12
  },
  "hsl": {
    "h": 101.143,
    "s": 59.322,
    "l": 11.569
  },
  "oklch": {
    "l": 0.2761,
    "c": 0.06543,
    "h": 137.2
  },
  "luminance": 0.02242
}

Semantic roles & 50–950 ramp

primary
#172F0C
secondary
#572C6B
accent
#45E3B1
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#030601
muted
#787A77

Preview Lab

Preview with #172F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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