#172C4D#172C4D

#172C4D is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.4% C 0.066 H 259.1°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#172C4D
RGBrgb(23, 44, 77)
HSLhsl(217, 54%, 20%)
HSVhsv(217, 70%, 30%)
CMYKcmyk(70.1%, 42.9%, 0%, 69.8%)
CIE-LABlab(18.00, 3.95, -22.88)
CIE-LCHlch(18.00, 23.21, 279.79°)
OKLaboklab(29.43% -0.0125 -0.065)
OKLCHoklch(29.43% 0.066 259.1)
XYZxyz(2.5931, 2.5191, 7.3693)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C4D #4D3817
analogous
#17474D #172C4D #1D174D
triadic
#172C4D #4D172C #2C4D17
tetradic
#172C4D #4D1747 #4D3817 #174D1D
square
#172C4D #4D1747 #4D3817 #174D1D
split-complementary
#172C4D #4D1D17 #474D17
monochromatic
#070D18 #09111E #172C4D #25477C #3362AB

Accessibility & contrast

On white

13.96
#172C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172C4D
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C4D#FFFFFF#000000##FFFFFF
##172C4D1.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2F4E
Deuteranopia (green-blind)
#162A4C
Tritanopia (blue-blind)
#003438
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #172c4d;
/* rgb */ color: rgb(23, 44, 77);
/* oklch */ color: oklch(29.4% 0.066 259.1);
Tailwind
colors: {
  custom: {
    50: '#5a647f',
    500: '#172c4d',
    950: '#000000',
  },
}
SCSS
$custom: #172c4d;
$custom-light: #5a647f;
$custom-dark: #000000;
JSON
{
  "hex": "#172c4d",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 77
  },
  "hsl": {
    "h": 216.667,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29427,
    "c": 0.06623,
    "h": 259.1
  },
  "luminance": 0.02519
}

Semantic roles & 50–950 ramp

primary
#172C4D
secondary
#84683C
accent
#A44ADD
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #172C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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