#172C01#172C01

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

Color values

HEX#172C01
RGBrgb(23, 44, 1)
HSLhsl(89, 96%, 9%)
HSVhsv(89, 98%, 17%)
CMYKcmyk(47.7%, 0%, 97.7%, 82.7%)
CIE-LABlab(15.41, -17.08, 21.63)
CIE-LCHlch(15.41, 27.56, 128.29°)
OKLaboklab(26.51% -0.0485 0.0535)
OKLCHoklch(26.51% 0.072 132.2)
XYZxyz(1.2595, 1.9857, 0.3456)
Luminance0.0199 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C01 #16012C
analogous
#2C2C01 #172C01 #022C01
triadic
#172C01 #01172C #2C0117
tetradic
#172C01 #012C2C #16012C #2C0102
square
#172C01 #012C2C #16012C #2C0102
split-complementary
#172C01 #01022C #2C012C
monochromatic
#101E01 #101E01 #172C01 #366802 #56A404

Accessibility & contrast

On white

15.03
#172C01 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172C01
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C01#FFFFFF#000000##FFFFFF
##172C011.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172c01;
/* rgb */ color: rgb(23, 44, 1);
/* oklch */ color: oklch(26.5% 0.072 132.2);
Tailwind
colors: {
  custom: {
    50: '#566547',
    500: '#172c01',
    950: '#000000',
  },
}
SCSS
$custom: #172c01;
$custom-light: #566547;
$custom-dark: #000000;
JSON
{
  "hex": "#172c01",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 1
  },
  "hsl": {
    "h": 89.302,
    "s": 95.556,
    "l": 8.824
  },
  "oklch": {
    "l": 0.2651,
    "c": 0.07222,
    "h": 132.2
  },
  "luminance": 0.01986
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #172C01

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

Preview Lab → · Contrast checker → · Palette generator →

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