#172C04#172C04

#172C04 is a dark, moderate yellow-green. Relative luminance 0.020; OKLCH L 26.5% C 0.069 H 133.2°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#172C04
RGBrgb(23, 44, 4)
HSLhsl(92, 83%, 9%)
HSVhsv(92, 91%, 17%)
CMYKcmyk(47.7%, 0%, 90.9%, 82.7%)
CIE-LABlab(15.45, -16.71, 20.45)
CIE-LCHlch(15.45, 26.41, 129.26°)
OKLaboklab(26.55% -0.0471 0.0501)
OKLCHoklch(26.55% 0.069 133.2)
XYZxyz(1.2759, 1.9922, 0.4321)
Luminance0.0199 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C04 #19042C
analogous
#2B2C04 #172C04 #042C05
triadic
#172C04 #04172C #2C0417
tetradic
#172C04 #042B2C #19042C #2C0504
square
#172C04 #042B2C #19042C #2C0504
split-complementary
#172C04 #05042C #2C042B
monochromatic
#0F1C03 #0F1C03 #172C04 #346409 #529C0E

Accessibility & contrast

On white

15.02
#172C04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#172C04 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172C04
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C04#FFFFFF#000000##FFFFFF
##172C041.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E2800
Deuteranopia (green-blind)
#2B2607
Tritanopia (blue-blind)
#172A24
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #172c04;
/* rgb */ color: rgb(23, 44, 4);
/* oklch */ color: oklch(26.5% 0.069 133.2);
Tailwind
colors: {
  custom: {
    50: '#566548',
    500: '#172c04',
    950: '#000000',
  },
}
SCSS
$custom: #172c04;
$custom-light: #566548;
$custom-dark: #000000;
JSON
{
  "hex": "#172c04",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 4
  },
  "hsl": {
    "h": 91.5,
    "s": 83.333,
    "l": 9.412
  },
  "oklch": {
    "l": 0.26549,
    "c": 0.06874,
    "h": 133.2
  },
  "luminance": 0.01992
}

Semantic roles & 50–950 ramp

primary
#172C04
secondary
#481D6F
accent
#2EFA99
background
#F5F6F4
surface
#E9EBE6
border
#C5C6C2
text
#030500
muted
#787A77

Preview Lab

Preview with #172C04

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

Preview Lab → · Contrast checker → · Palette generator →

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