#172F12#172F12

#172F12 is a dark, muted green. Relative luminance 0.023; OKLCH L 27.7% C 0.059 H 140.2°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#172F12
RGBrgb(23, 47, 18)
HSLhsl(110, 45%, 13%)
HSVhsv(110, 62%, 18%)
CMYKcmyk(51.1%, 0%, 61.7%, 81.6%)
CIE-LABlab(16.79, -16.51, 15.64)
CIE-LCHlch(16.79, 22.75, 136.54°)
OKLaboklab(27.71% -0.0452 0.0376)
OKLCHoklch(27.71% 0.059 140.2)
XYZxyz(1.4790, 2.2588, 0.9302)
Luminance0.0226 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F12 #2A122F
analogous
#252F12 #172F12 #122F1B
triadic
#172F12 #12172F #2F1217
tetradic
#172F12 #12252F #2A122F #2F1B12
square
#172F12 #12252F #2A122F #2F1B12
split-complementary
#172F12 #1B122F #2F1225
monochromatic
#0B1608 #0B1608 #172F12 #2D5B23 #428834

Accessibility & contrast

On white

14.46
#172F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172F12
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F12#FFFFFF#000000##FFFFFF
##172F121.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302B0F
Deuteranopia (green-blind)
#2D2914
Tritanopia (blue-blind)
#152D28
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #172f12;
/* rgb */ color: rgb(23, 47, 18);
/* oklch */ color: oklch(27.7% 0.059 140.2);
Tailwind
colors: {
  custom: {
    50: '#566750',
    500: '#172f12',
    950: '#000000',
  },
}
SCSS
$custom: #172f12;
$custom-light: #566750;
$custom-dark: #000000;
JSON
{
  "hex": "#172f12",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 18
  },
  "hsl": {
    "h": 109.655,
    "s": 44.615,
    "l": 12.745
  },
  "oklch": {
    "l": 0.27705,
    "c": 0.05877,
    "h": 140.2
  },
  "luminance": 0.02259
}

Semantic roles & 50–950 ramp

primary
#172F12
secondary
#5E3667
accent
#53D4BE
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#030602
muted
#787A78

Preview Lab

Preview with #172F12

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

Preview Lab → · Contrast checker → · Palette generator →

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