#172A42#172A42

#172A42 is a dark, muted cyan. Relative luminance 0.022; OKLCH L 28.2% C 0.051 H 254.9°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#172A42
RGBrgb(23, 42, 66)
HSLhsl(213, 48%, 17%)
HSVhsv(213, 65%, 26%)
CMYKcmyk(65.2%, 36.4%, 0%, 74.1%)
CIE-LABlab(16.66, 0.96, -17.49)
CIE-LCHlch(16.66, 17.52, 273.13°)
OKLaboklab(28.16% -0.0133 -0.0493)
OKLCHoklch(28.16% 0.051 254.9)
XYZxyz(2.1643, 2.2313, 5.4698)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A42 #422F17
analogous
#174042 #172A42 #191742
triadic
#172A42 #42172A #2A4217
tetradic
#172A42 #421740 #422F17 #174219
square
#172A42 #421740 #422F17 #174219
split-complementary
#172A42 #421917 #404217
monochromatic
#080E17 #080E17 #172A42 #27476F #37649D

Accessibility & contrast

On white

14.52
#172A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#172A42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A42
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A42#FFFFFF#000000##FFFFFF
##172A421.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202B43
Deuteranopia (green-blind)
#1B2742
Tritanopia (blue-blind)
#002F33
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #172a42;
/* rgb */ color: rgb(23, 42, 66);
/* oklch */ color: oklch(28.2% 0.051 254.9);
Tailwind
colors: {
  custom: {
    50: '#586376',
    500: '#172a42',
    950: '#000000',
  },
}
SCSS
$custom: #172a42;
$custom-light: #586376;
$custom-dark: #000000;
JSON
{
  "hex": "#172a42",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 66
  },
  "hsl": {
    "h": 213.488,
    "s": 48.315,
    "l": 17.451
  },
  "oklch": {
    "l": 0.28158,
    "c": 0.05109,
    "h": 254.9
  },
  "luminance": 0.02231
}

Semantic roles & 50–950 ramp

primary
#172A42
secondary
#795E3C
accent
#9C50D8
background
#F5F5F7
surface
#E9EAED
border
#C5C6C8
text
#030508
muted
#78797B

Preview Lab

Preview with #172A42

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

Preview Lab → · Contrast checker → · Palette generator →

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