#172F03#172F03

#172F03 is a dark, moderate yellow-green. Relative luminance 0.022; OKLCH L 27.5% C 0.074 H 134.1°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#172F03
RGBrgb(23, 47, 3)
HSLhsl(93, 88%, 10%)
HSVhsv(93, 94%, 18%)
CMYKcmyk(51.1%, 0%, 93.6%, 81.6%)
CIE-LABlab(16.61, -18.40, 22.32)
CIE-LCHlch(16.61, 28.92, 129.50°)
OKLaboklab(27.5% -0.0517 0.0535)
OKLCHoklch(27.5% 0.074 134.1)
XYZxyz(1.3863, 2.2217, 0.4419)
Luminance0.0222 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F03 #1B032F
analogous
#2D2F03 #172F03 #032F05
triadic
#172F03 #03172F #2F0317
tetradic
#172F03 #032D2F #1B032F #2F0503
square
#172F03 #032D2F #1B032F #2F0503
split-complementary
#172F03 #05032F #2F032D
monochromatic
#0E1D02 #0E1D02 #172F03 #336907 #4FA20A

Accessibility & contrast

On white

14.54
#172F03 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#172F03 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F03
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F03#FFFFFF#000000##FFFFFF
##172F031.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#312A00
Deuteranopia (green-blind)
#2E2807
Tritanopia (blue-blind)
#172D27
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #172f03;
/* rgb */ color: rgb(23, 47, 3);
/* oklch */ color: oklch(27.5% 0.074 134.1);
Tailwind
colors: {
  custom: {
    50: '#566848',
    500: '#172f03',
    950: '#000000',
  },
}
SCSS
$custom: #172f03;
$custom-light: #566848;
$custom-dark: #000000;
JSON
{
  "hex": "#172f03",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 3
  },
  "hsl": {
    "h": 92.727,
    "s": 88,
    "l": 9.804
  },
  "oklch": {
    "l": 0.27499,
    "c": 0.0744,
    "h": 134.1
  },
  "luminance": 0.02222
}

Semantic roles & 50–950 ramp

primary
#172F03
secondary
#4B1B73
accent
#2AFE9E
background
#F5F6F4
surface
#E9EBE6
border
#C5C6C2
text
#030600
muted
#787A77

Preview Lab

Preview with #172F03

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

Preview Lab → · Contrast checker → · Palette generator →

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