#172D4D#172D4D

#172D4D is a dark, moderate blue. Relative luminance 0.026; OKLCH L 29.7% C 0.065 H 257.8°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#172D4D
RGBrgb(23, 45, 77)
HSLhsl(216, 54%, 20%)
HSVhsv(216, 70%, 30%)
CMYKcmyk(70.1%, 41.6%, 0%, 69.8%)
CIE-LABlab(18.34, 3.23, -22.34)
CIE-LCHlch(18.34, 22.58, 278.22°)
OKLaboklab(29.69% -0.0137 -0.0635)
OKLCHoklch(29.69% 0.065 257.8)
XYZxyz(2.6308, 2.5945, 7.3819)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D4D #4D3717
analogous
#17484D #172D4D #1C174D
triadic
#172D4D #4D172D #2D4D17
tetradic
#172D4D #4D1748 #4D3717 #174D1C
square
#172D4D #4D1748 #4D3717 #174D1C
split-complementary
#172D4D #4D1C17 #484D17
monochromatic
#070E18 #09111E #172D4D #25497C #3364AB

Accessibility & contrast

On white

13.82
#172D4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#172D4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D4D
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D4D#FFFFFF#000000##FFFFFF
##172D4D1.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2F4E
Deuteranopia (green-blind)
#172A4C
Tritanopia (blue-blind)
#003439
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #172d4d;
/* rgb */ color: rgb(23, 45, 77);
/* oklch */ color: oklch(29.7% 0.065 257.8);
Tailwind
colors: {
  custom: {
    50: '#5a657f',
    500: '#172d4d',
    950: '#000000',
  },
}
SCSS
$custom: #172d4d;
$custom-light: #5a657f;
$custom-dark: #000000;
JSON
{
  "hex": "#172d4d",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 77
  },
  "hsl": {
    "h": 215.556,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29688,
    "c": 0.06493,
    "h": 257.8
  },
  "luminance": 0.02595
}

Semantic roles & 50–950 ramp

primary
#172D4D
secondary
#84673C
accent
#A24ADD
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#04050A
muted
#797A7C

Preview Lab

Preview with #172D4D

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

Preview Lab → · Contrast checker → · Palette generator →

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