#172A01#172A01

#172A01 is a dark, moderate yellow-green. Relative luminance 0.018; OKLCH L 25.9% C 0.069 H 131.2°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#172A01
RGBrgb(23, 42, 1)
HSLhsl(88, 95%, 8%)
HSVhsv(88, 98%, 16%)
CMYKcmyk(45.2%, 0%, 97.6%, 83.5%)
CIE-LABlab(14.63, -16.01, 20.62)
CIE-LCHlch(14.63, 26.10, 127.82°)
OKLaboklab(25.87% -0.0457 0.0521)
OKLCHoklch(25.87% 0.069 131.2)
XYZxyz(1.1868, 1.8402, 0.3214)
Luminance0.0184 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A01 #14012A
analogous
#2A2801 #172A01 #022A01
triadic
#172A01 #01172A #2A0117
tetradic
#172A01 #012A28 #14012A #2A0102
square
#172A01 #012A28 #14012A #2A0102
split-complementary
#172A01 #01022A #28012A
monochromatic
#101E01 #101E01 #172A01 #386602 #58A204

Accessibility & contrast

On white

15.35
#172A01 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#172A01 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A01
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A01#FFFFFF#000000##FFFFFF
##172A011.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C2600
Deuteranopia (green-blind)
#2A2404
Tritanopia (blue-blind)
#182822
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #172a01;
/* rgb */ color: rgb(23, 42, 1);
/* oklch */ color: oklch(25.9% 0.069 131.2);
Tailwind
colors: {
  custom: {
    50: '#556347',
    500: '#172a01',
    950: '#000000',
  },
}
SCSS
$custom: #172a01;
$custom-light: #556347;
$custom-dark: #000000;
JSON
{
  "hex": "#172a01",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 1
  },
  "hsl": {
    "h": 87.805,
    "s": 95.349,
    "l": 8.431
  },
  "oklch": {
    "l": 0.25867,
    "c": 0.06927,
    "h": 131.2
  },
  "luminance": 0.0184
}

Semantic roles & 50–950 ramp

primary
#172A01
secondary
#401670
accent
#29FF8C
background
#F5F5F4
surface
#E9EAE6
border
#C5C6C2
text
#030500
muted
#787977

Preview Lab

Preview with #172A01

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

Preview Lab → · Contrast checker → · Palette generator →

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