#172D5A#172D5A

#172D5A is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.6% C 0.086 H 262.8°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#172D5A
RGBrgb(23, 45, 90)
HSLhsl(220, 59%, 22%)
HSVhsv(220, 74%, 35%)
CMYKcmyk(74.4%, 50%, 0%, 64.7%)
CIE-LABlab(19.21, 8.60, -29.66)
CIE-LCHlch(19.21, 30.89, 286.18°)
OKLaboklab(30.64% -0.0107 -0.0849)
OKLCHoklch(30.64% 0.086 262.8)
XYZxyz(3.1365, 2.7968, 10.0454)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D5A #5A4417
analogous
#174E5A #172D5A #23175A
triadic
#172D5A #5A172D #2D5A17
tetradic
#172D5A #5A174E #5A4417 #175A23
square
#172D5A #5A174E #5A4417 #175A23
split-complementary
#172D5A #5A2317 #4E5A17
monochromatic
#060C18 #0B1529 #172D5A #23458B #305EBB

Accessibility & contrast

On white

13.47
#172D5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#172D5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D5A
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D5A#FFFFFF#000000##FFFFFF
##172D5A1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16325C
Deuteranopia (green-blind)
#082C59
Tritanopia (blue-blind)
#00373F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172d5a;
/* rgb */ color: rgb(23, 45, 90);
/* oklch */ color: oklch(30.6% 0.086 262.8);
Tailwind
colors: {
  custom: {
    50: '#5d6589',
    500: '#172d5a',
    950: '#000000',
  },
}
SCSS
$custom: #172d5a;
$custom-light: #5d6589;
$custom-dark: #000000;
JSON
{
  "hex": "#172d5a",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 90
  },
  "hsl": {
    "h": 220.299,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.30642,
    "c": 0.08563,
    "h": 262.8
  },
  "luminance": 0.02797
}

Semantic roles & 50–950 ramp

primary
#172D5A
secondary
#91753C
accent
#AF45E2
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05050B
muted
#797A7C

Preview Lab

Preview with #172D5A

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

Preview Lab → · Contrast checker → · Palette generator →

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