#172F4C#172F4C

#172F4C is a dark, moderate cyan. Relative luminance 0.027; OKLCH L 30.1% C 0.061 H 254.3°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#172F4C
RGBrgb(23, 47, 76)
HSLhsl(213, 54%, 19%)
HSVhsv(213, 70%, 30%)
CMYKcmyk(69.7%, 38.2%, 0%, 70.2%)
CIE-LABlab(18.96, 1.39, -20.69)
CIE-LCHlch(18.96, 20.74, 273.85°)
OKLaboklab(30.15% -0.0165 -0.0586)
OKLCHoklch(30.15% 0.061 254.3)
XYZxyz(2.6739, 2.7367, 7.2234)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F4C #4C3417
analogous
#174A4C #172F4C #1A174C
triadic
#172F4C #4C172F #2F4C17
tetradic
#172F4C #4C174A #4C3417 #174C1A
square
#172F4C #4C174A #4C3417 #174C1A
split-complementary
#172F4C #4C1A17 #4A4C17
monochromatic
#070F17 #09121D #172F4C #254C7B #3369AA

Accessibility & contrast

On white

13.57
#172F4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172F4C
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F4C#FFFFFF#000000##FFFFFF
##172F4C1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23314D
Deuteranopia (green-blind)
#1B2C4B
Tritanopia (blue-blind)
#00363A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172f4c;
/* rgb */ color: rgb(23, 47, 76);
/* oklch */ color: oklch(30.1% 0.061 254.3);
Tailwind
colors: {
  custom: {
    50: '#5a677e',
    500: '#172f4c',
    950: '#000000',
  },
}
SCSS
$custom: #172f4c;
$custom-light: #5a677e;
$custom-dark: #000000;
JSON
{
  "hex": "#172f4c",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 76
  },
  "hsl": {
    "h": 212.83,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.30149,
    "c": 0.06089,
    "h": 254.3
  },
  "luminance": 0.02737
}

Semantic roles & 50–950 ramp

primary
#172F4C
secondary
#83633C
accent
#9B4BDD
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#04060A
muted
#797A7C

Preview Lab

Preview with #172F4C

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

Preview Lab → · Contrast checker → · Palette generator →

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