#172B4A#172B4A

#172B4A is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.0% C 0.063 H 258.9°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#172B4A
RGBrgb(23, 43, 74)
HSLhsl(216, 53%, 19%)
HSVhsv(216, 69%, 29%)
CMYKcmyk(68.9%, 41.9%, 0%, 71%)
CIE-LABlab(17.48, 3.45, -21.67)
CIE-LCHlch(17.48, 21.95, 279.04°)
OKLaboklab(28.96% -0.0121 -0.0615)
OKLCHoklch(28.96% 0.063 258.9)
XYZxyz(2.4528, 2.4041, 6.8120)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B4A #4A3617
analogous
#17454A #172B4A #1D174A
triadic
#172B4A #4A172B #2B4A17
tetradic
#172B4A #4A1745 #4A3617 #174A1D
square
#172B4A #4A1745 #4A3617 #174A1D
split-complementary
#172B4A #4A1D17 #454A17
monochromatic
#070E17 #08101B #172B4A #264679 #3461A7

Accessibility & contrast

On white

14.18
#172B4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#172B4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B4A
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B4A#FFFFFF#000000##FFFFFF
##172B4A1.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2D4B
Deuteranopia (green-blind)
#172949
Tritanopia (blue-blind)
#003237
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #172b4a;
/* rgb */ color: rgb(23, 43, 74);
/* oklch */ color: oklch(29.0% 0.063 258.9);
Tailwind
colors: {
  custom: {
    50: '#5a647c',
    500: '#172b4a',
    950: '#000000',
  },
}
SCSS
$custom: #172b4a;
$custom-light: #5a647c;
$custom-dark: #000000;
JSON
{
  "hex": "#172b4a",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 74
  },
  "hsl": {
    "h": 216.471,
    "s": 52.577,
    "l": 19.02
  },
  "oklch": {
    "l": 0.28957,
    "c": 0.06271,
    "h": 258.9
  },
  "luminance": 0.02404
}

Semantic roles & 50–950 ramp

primary
#172B4A
secondary
#81663C
accent
#A34CDC
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#040509
muted
#79797B

Preview Lab

Preview with #172B4A

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

Preview Lab → · Contrast checker → · Palette generator →

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