#172F4F#172F4F

#172F4F is a dark, moderate cyan. Relative luminance 0.028; OKLCH L 30.3% C 0.066 H 256.2°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#172F4F
RGBrgb(23, 47, 79)
HSLhsl(214, 55%, 20%)
HSVhsv(214, 71%, 31%)
CMYKcmyk(70.9%, 40.5%, 0%, 69%)
CIE-LABlab(19.14, 2.61, -22.43)
CIE-LCHlch(19.14, 22.58, 276.63°)
OKLaboklab(30.35% -0.0156 -0.0637)
OKLCHoklch(30.35% 0.066 256.2)
XYZxyz(2.7806, 2.7794, 7.7856)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F4F #4F3717
analogous
#174B4F #172F4F #1B174F
triadic
#172F4F #4F172F #2F4F17
tetradic
#172F4F #4F174B #4F3717 #174F1B
square
#172F4F #4F174B #4F3717 #174F1B
split-complementary
#172F4F #4F1B17 #4B4F17
monochromatic
#070E18 #091320 #172F4F #254B7E #3367AE

Accessibility & contrast

On white

13.50
#172F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#172F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F4F
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F4F#FFFFFF#000000##FFFFFF
##172F4F1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213150
Deuteranopia (green-blind)
#192C4E
Tritanopia (blue-blind)
#00363B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172f4f;
/* rgb */ color: rgb(23, 47, 79);
/* oklch */ color: oklch(30.3% 0.066 256.2);
Tailwind
colors: {
  custom: {
    50: '#5b6780',
    500: '#172f4f',
    950: '#000000',
  },
}
SCSS
$custom: #172f4f;
$custom-light: #5b6780;
$custom-dark: #000000;
JSON
{
  "hex": "#172f4f",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 79
  },
  "hsl": {
    "h": 214.286,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.30349,
    "c": 0.06557,
    "h": 256.2
  },
  "luminance": 0.0278
}

Semantic roles & 50–950 ramp

primary
#172F4F
secondary
#86663C
accent
#9F4ADE
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#04060A
muted
#797A7C

Preview Lab

Preview with #172F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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