#172C4A#172C4A

#172C4A is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.2% C 0.061 H 257.4°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#172C4A
RGBrgb(23, 44, 74)
HSLhsl(215, 53%, 19%)
HSVhsv(215, 69%, 29%)
CMYKcmyk(68.9%, 40.5%, 0%, 71%)
CIE-LABlab(17.82, 2.73, -21.14)
CIE-LCHlch(17.82, 21.31, 277.35°)
OKLaboklab(29.22% -0.0134 -0.0599)
OKLCHoklch(29.22% 0.061 257.4)
XYZxyz(2.4896, 2.4777, 6.8243)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C4A #4A3517
analogous
#17464A #172C4A #1C174A
triadic
#172C4A #4A172C #2C4A17
tetradic
#172C4A #4A1746 #4A3517 #174A1C
square
#172C4A #4A1746 #4A3517 #174A1C
split-complementary
#172C4A #4A1C17 #464A17
monochromatic
#070E17 #08101B #172C4A #264879 #3464A7

Accessibility & contrast

On white

14.04
#172C4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#172C4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172C4A
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C4A#FFFFFF#000000##FFFFFF
##172C4A1.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2E4B
Deuteranopia (green-blind)
#182949
Tritanopia (blue-blind)
#003337
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #172c4a;
/* rgb */ color: rgb(23, 44, 74);
/* oklch */ color: oklch(29.2% 0.061 257.4);
Tailwind
colors: {
  custom: {
    50: '#5a647c',
    500: '#172c4a',
    950: '#000000',
  },
}
SCSS
$custom: #172c4a;
$custom-light: #5a647c;
$custom-dark: #000000;
JSON
{
  "hex": "#172c4a",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 74
  },
  "hsl": {
    "h": 215.294,
    "s": 52.577,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2922,
    "c": 0.06142,
    "h": 257.4
  },
  "luminance": 0.02478
}

Semantic roles & 50–950 ramp

primary
#172C4A
secondary
#81653C
accent
#A14CDC
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#040509
muted
#797A7B

Preview Lab

Preview with #172C4A

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

Preview Lab → · Contrast checker → · Palette generator →

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