#172F4D#172F4D

#172F4D is a dark, moderate cyan. Relative luminance 0.028; OKLCH L 30.2% C 0.062 H 255.0°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#172F4D
RGBrgb(23, 47, 77)
HSLhsl(213, 54%, 20%)
HSVhsv(213, 70%, 30%)
CMYKcmyk(70.1%, 39%, 0%, 69.8%)
CIE-LABlab(19.02, 1.79, -21.27)
CIE-LCHlch(19.02, 21.35, 274.82°)
OKLaboklab(30.21% -0.0162 -0.0603)
OKLCHoklch(30.21% 0.062 255)
XYZxyz(2.7089, 2.7508, 7.4079)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F4D #4D3517
analogous
#174A4D #172F4D #1A174D
triadic
#172F4D #4D172F #2F4D17
tetradic
#172F4D #4D174A #4D3517 #174D1A
square
#172F4D #4D174A #4D3517 #174D1A
split-complementary
#172F4D #4D1A17 #4A4D17
monochromatic
#070E18 #09121E #172F4D #254C7C #3369AB

Accessibility & contrast

On white

13.55
#172F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#172F4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F4D
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F4D#FFFFFF#000000##FFFFFF
##172F4D1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22314E
Deuteranopia (green-blind)
#1B2C4C
Tritanopia (blue-blind)
#00363A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172f4d;
/* rgb */ color: rgb(23, 47, 77);
/* oklch */ color: oklch(30.2% 0.062 255.0);
Tailwind
colors: {
  custom: {
    50: '#5a677f',
    500: '#172f4d',
    950: '#000000',
  },
}
SCSS
$custom: #172f4d;
$custom-light: #5a677f;
$custom-dark: #000000;
JSON
{
  "hex": "#172f4d",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 77
  },
  "hsl": {
    "h": 213.333,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.30215,
    "c": 0.06245,
    "h": 255
  },
  "luminance": 0.02751
}

Semantic roles & 50–950 ramp

primary
#172F4D
secondary
#84643C
accent
#9C4ADD
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#04060A
muted
#797A7C

Preview Lab

Preview with #172F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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