#172C5A#172C5A

#172C5A is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.4% C 0.087 H 263.6°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#172C5A
RGBrgb(23, 44, 90)
HSLhsl(221, 59%, 22%)
HSVhsv(221, 74%, 35%)
CMYKcmyk(74.4%, 51.1%, 0%, 64.7%)
CIE-LABlab(18.89, 9.34, -30.18)
CIE-LCHlch(18.89, 31.59, 287.19°)
OKLaboklab(30.4% -0.0097 -0.0865)
OKLCHoklch(30.4% 0.087 263.6)
XYZxyz(3.0988, 2.7214, 10.0328)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C5A #5A4517
analogous
#174E5A #172C5A #24175A
triadic
#172C5A #5A172C #2C5A17
tetradic
#172C5A #5A174E #5A4517 #175A24
square
#172C5A #5A174E #5A4517 #175A24
split-complementary
#172C5A #5A2417 #4E5A17
monochromatic
#060C18 #0B1429 #172C5A #23448B #305CBB

Accessibility & contrast

On white

13.60
#172C5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#172C5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172C5A
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C5A#FFFFFF#000000##FFFFFF
##172C5A1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14315C
Deuteranopia (green-blind)
#052B59
Tritanopia (blue-blind)
#00373E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172c5a;
/* rgb */ color: rgb(23, 44, 90);
/* oklch */ color: oklch(30.4% 0.087 263.6);
Tailwind
colors: {
  custom: {
    50: '#5d6489',
    500: '#172c5a',
    950: '#000000',
  },
}
SCSS
$custom: #172c5a;
$custom-light: #5d6489;
$custom-dark: #000000;
JSON
{
  "hex": "#172c5a",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 90
  },
  "hsl": {
    "h": 221.194,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.30397,
    "c": 0.08701,
    "h": 263.6
  },
  "luminance": 0.02722
}

Semantic roles & 50–950 ramp

primary
#172C5A
secondary
#91763C
accent
#B145E2
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050B
muted
#79797C

Preview Lab

Preview with #172C5A

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

Preview Lab → · Contrast checker → · Palette generator →

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