#172F40#172F40

#172F40 is a dark, muted cyan. Relative luminance 0.026; OKLCH L 29.4% C 0.043 H 241.2°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#172F40
RGBrgb(23, 47, 64)
HSLhsl(205, 47%, 17%)
HSVhsv(205, 64%, 25%)
CMYKcmyk(64.1%, 26.6%, 0%, 74.9%)
CIE-LABlab(18.30, -3.33, -13.55)
CIE-LCHlch(18.30, 13.96, 256.20°)
OKLaboklab(29.42% -0.0209 -0.0379)
OKLCHoklch(29.42% 0.043 241.2)
XYZxyz(2.2949, 2.5852, 5.2275)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F40 #402817
analogous
#17403D #172F40 #171B40
triadic
#172F40 #40172F #2F4017
tetradic
#172F40 #3D1740 #402817 #1B4017
square
#172F40 #3D1740 #402817 #1B4017
split-complementary
#172F40 #40171B #403D17
monochromatic
#081117 #081117 #172F40 #27506D #37719A

Accessibility & contrast

On white

13.84
#172F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#172F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F40
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F40#FFFFFF#000000##FFFFFF
##172F401.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#272F41
Deuteranopia (green-blind)
#222B40
Tritanopia (blue-blind)
#003335
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #172f40;
/* rgb */ color: rgb(23, 47, 64);
/* oklch */ color: oklch(29.4% 0.043 241.2);
Tailwind
colors: {
  custom: {
    50: '#586775',
    500: '#172f40',
    950: '#000000',
  },
}
SCSS
$custom: #172f40;
$custom-light: #586775;
$custom-dark: #000000;
JSON
{
  "hex": "#172f40",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 64
  },
  "hsl": {
    "h": 204.878,
    "s": 47.126,
    "l": 17.059
  },
  "oklch": {
    "l": 0.29415,
    "c": 0.04328,
    "h": 241.2
  },
  "luminance": 0.02585
}

Semantic roles & 50–950 ramp

primary
#172F40
secondary
#77543C
accent
#8851D7
background
#F5F6F7
surface
#E9EBED
border
#C5C6C8
text
#030608
muted
#787A7B

Preview Lab

Preview with #172F40

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

Preview Lab → · Contrast checker → · Palette generator →

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