#172D5F#172D5F

#172D5F is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.0% C 0.093 H 263.9°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#172D5F
RGBrgb(23, 45, 95)
HSLhsl(222, 61%, 23%)
HSVhsv(222, 76%, 37%)
CMYKcmyk(75.8%, 52.6%, 0%, 62.7%)
CIE-LABlab(19.58, 10.70, -32.38)
CIE-LCHlch(19.58, 34.10, 288.28°)
OKLaboklab(31.04% -0.0099 -0.0929)
OKLCHoklch(31.04% 0.093 263.9)
XYZxyz(3.3566, 2.8848, 11.2042)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D5F #5F4917
analogous
#17515F #172D5F #25175F
triadic
#172D5F #5F172D #2D5F17
tetradic
#172D5F #5F1751 #5F4917 #175F25
square
#172D5F #5F1751 #5F4917 #175F25
split-complementary
#172D5F #5F2517 #515F17
monochromatic
#060C19 #0B162E #172D5F #234490 #2F5CC2

Accessibility & contrast

On white

13.32
#172D5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#172D5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D5F
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D5F#FFFFFF#000000##FFFFFF
##172D5F1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113361
Deuteranopia (green-blind)
#002C5E
Tritanopia (blue-blind)
#003941
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172d5f;
/* rgb */ color: rgb(23, 45, 95);
/* oklch */ color: oklch(31.0% 0.093 263.9);
Tailwind
colors: {
  custom: {
    50: '#5f658d',
    500: '#172d5f',
    950: '#000000',
  },
}
SCSS
$custom: #172d5f;
$custom-light: #5f658d;
$custom-dark: #000000;
JSON
{
  "hex": "#172d5f",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 95
  },
  "hsl": {
    "h": 221.667,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.31039,
    "c": 0.09348,
    "h": 263.9
  },
  "luminance": 0.02885
}

Semantic roles & 50–950 ramp

primary
#172D5F
secondary
#967A3C
accent
#B344E4
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05050C
muted
#797A7D

Preview Lab

Preview with #172D5F

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

Preview Lab → · Contrast checker → · Palette generator →

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