#172A40#172A40

#172A40 is a dark, muted cyan. Relative luminance 0.022; OKLCH L 28.0% C 0.048 H 253.1°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#172A40
RGBrgb(23, 42, 64)
HSLhsl(212, 47%, 17%)
HSVhsv(212, 64%, 25%)
CMYKcmyk(64.1%, 34.4%, 0%, 74.9%)
CIE-LABlab(16.54, 0.17, -16.29)
CIE-LCHlch(16.54, 16.29, 270.60°)
OKLaboklab(28.03% -0.014 -0.0458)
OKLCHoklch(28.03% 0.048 253.1)
XYZxyz(2.1064, 2.2081, 5.1647)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A40 #402D17
analogous
#173F40 #172A40 #191740
triadic
#172A40 #40172A #2A4017
tetradic
#172A40 #40173F #402D17 #174019
square
#172A40 #40173F #402D17 #174019
split-complementary
#172A40 #401917 #3F4017
monochromatic
#080F17 #080F17 #172A40 #27486D #37659A

Accessibility & contrast

On white

14.57
#172A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172A40
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A40#FFFFFF#000000##FFFFFF
##172A401.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212B41
Deuteranopia (green-blind)
#1C2740
Tritanopia (blue-blind)
#002F32
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #172a40;
/* rgb */ color: rgb(23, 42, 64);
/* oklch */ color: oklch(28.0% 0.048 253.1);
Tailwind
colors: {
  custom: {
    50: '#586375',
    500: '#172a40',
    950: '#000000',
  },
}
SCSS
$custom: #172a40;
$custom-light: #586375;
$custom-dark: #000000;
JSON
{
  "hex": "#172a40",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 64
  },
  "hsl": {
    "h": 212.195,
    "s": 47.126,
    "l": 17.059
  },
  "oklch": {
    "l": 0.28032,
    "c": 0.04793,
    "h": 253.1
  },
  "luminance": 0.02208
}

Semantic roles & 50–950 ramp

primary
#172A40
secondary
#775C3C
accent
#9951D7
background
#F5F5F7
surface
#E9EAED
border
#C5C6C8
text
#030508
muted
#78797B

Preview Lab

Preview with #172A40

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

Preview Lab → · Contrast checker → · Palette generator →

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