#172B42#172B42

#172B42 is a dark, muted cyan. Relative luminance 0.023; OKLCH L 28.4% C 0.050 H 253.0°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#172B42
RGBrgb(23, 43, 66)
HSLhsl(212, 48%, 17%)
HSVhsv(212, 65%, 26%)
CMYKcmyk(65.2%, 34.8%, 0%, 74.1%)
CIE-LABlab(17.00, 0.24, -16.95)
CIE-LCHlch(17.00, 16.95, 270.82°)
OKLaboklab(28.43% -0.0146 -0.0477)
OKLCHoklch(28.43% 0.05 253)
XYZxyz(2.2002, 2.3031, 5.4818)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B42 #422E17
analogous
#174142 #172B42 #181742
triadic
#172B42 #42172B #2B4217
tetradic
#172B42 #421741 #422E17 #174218
square
#172B42 #421741 #422E17 #174218
split-complementary
#172B42 #421817 #414217
monochromatic
#080F17 #080F17 #172B42 #27496F #37669D

Accessibility & contrast

On white

14.38
#172B42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#172B42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B42
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B42#FFFFFF#000000##FFFFFF
##172B421.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212C43
Deuteranopia (green-blind)
#1C2842
Tritanopia (blue-blind)
#003033
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #172b42;
/* rgb */ color: rgb(23, 43, 66);
/* oklch */ color: oklch(28.4% 0.050 253.0);
Tailwind
colors: {
  custom: {
    50: '#586476',
    500: '#172b42',
    950: '#000000',
  },
}
SCSS
$custom: #172b42;
$custom-light: #586476;
$custom-dark: #000000;
JSON
{
  "hex": "#172b42",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 66
  },
  "hsl": {
    "h": 212.093,
    "s": 48.315,
    "l": 17.451
  },
  "oklch": {
    "l": 0.2843,
    "c": 0.04994,
    "h": 253
  },
  "luminance": 0.02303
}

Semantic roles & 50–950 ramp

primary
#172B42
secondary
#795D3C
accent
#9950D8
background
#F5F5F7
surface
#E9EAED
border
#C5C6C8
text
#030508
muted
#78797B

Preview Lab

Preview with #172B42

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

Preview Lab → · Contrast checker → · Palette generator →

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