#172B02#172B02

#172B02 is a dark, moderate yellow-green. Relative luminance 0.019; OKLCH L 26.2% C 0.070 H 132.1°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#172B02
RGBrgb(23, 43, 2)
HSLhsl(89, 91%, 9%)
HSVhsv(89, 95%, 17%)
CMYKcmyk(46.5%, 0%, 95.3%, 83.1%)
CIE-LABlab(15.03, -16.42, 20.73)
CIE-LCHlch(15.03, 26.45, 128.38°)
OKLaboklab(26.2% -0.0466 0.0516)
OKLCHoklch(26.2% 0.07 132.1)
XYZxyz(1.2282, 1.9142, 0.3622)
Luminance0.0191 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B02 #16022B
analogous
#2B2B02 #172B02 #032B02
triadic
#172B02 #02172B #2B0217
tetradic
#172B02 #022B2B #16022B #2B0203
square
#172B02 #022B2B #16022B #2B0203
split-complementary
#172B02 #02032B #2B022B
monochromatic
#101D01 #101D01 #172B02 #366505 #56A007

Accessibility & contrast

On white

15.19
#172B02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#172B02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B02
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B02#FFFFFF#000000##FFFFFF
##172B021.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D2700
Deuteranopia (green-blind)
#2B2505
Tritanopia (blue-blind)
#172923
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #172b02;
/* rgb */ color: rgb(23, 43, 2);
/* oklch */ color: oklch(26.2% 0.070 132.1);
Tailwind
colors: {
  custom: {
    50: '#556447',
    500: '#172b02',
    950: '#000000',
  },
}
SCSS
$custom: #172b02;
$custom-light: #556447;
$custom-dark: #000000;
JSON
{
  "hex": "#172b02",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 2
  },
  "hsl": {
    "h": 89.268,
    "s": 91.111,
    "l": 8.824
  },
  "oklch": {
    "l": 0.26202,
    "c": 0.06954,
    "h": 132.1
  },
  "luminance": 0.01914
}

Semantic roles & 50–950 ramp

primary
#172B02
secondary
#431970
accent
#29FF91
background
#F5F6F4
surface
#E9EBE6
border
#C5C6C2
text
#030500
muted
#787A77

Preview Lab

Preview with #172B02

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

Preview Lab → · Contrast checker → · Palette generator →

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