#172C5F#172C5F

#172C5F is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.8% C 0.095 H 264.6°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#172C5F
RGBrgb(23, 44, 95)
HSLhsl(223, 61%, 23%)
HSVhsv(223, 76%, 37%)
CMYKcmyk(75.8%, 53.7%, 0%, 62.7%)
CIE-LABlab(19.26, 11.43, -32.89)
CIE-LCHlch(19.26, 34.81, 289.16°)
OKLaboklab(30.8% -0.0089 -0.0945)
OKLCHoklch(30.8% 0.095 264.6)
XYZxyz(3.3189, 2.8094, 11.1916)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C5F #5F4A17
analogous
#17505F #172C5F #26175F
triadic
#172C5F #5F172C #2C5F17
tetradic
#172C5F #5F1750 #5F4A17 #175F26
square
#172C5F #5F1750 #5F4A17 #175F26
split-complementary
#172C5F #5F2617 #505F17
monochromatic
#060B19 #0B152E #172C5F #234390 #2F5AC2

Accessibility & contrast

On white

13.44
#172C5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172C5F
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C5F#FFFFFF#000000##FFFFFF
##172C5F1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3261
Deuteranopia (green-blind)
#002C5E
Tritanopia (blue-blind)
#003841
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172c5f;
/* rgb */ color: rgb(23, 44, 95);
/* oklch */ color: oklch(30.8% 0.095 264.6);
Tailwind
colors: {
  custom: {
    50: '#5f648d',
    500: '#172c5f',
    950: '#000000',
  },
}
SCSS
$custom: #172c5f;
$custom-light: #5f648d;
$custom-dark: #000000;
JSON
{
  "hex": "#172c5f",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 95
  },
  "hsl": {
    "h": 222.5,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.30801,
    "c": 0.09487,
    "h": 264.6
  },
  "luminance": 0.0281
}

Semantic roles & 50–950 ramp

primary
#172C5F
secondary
#967C3C
accent
#B544E4
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #172C5F

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

Preview Lab → · Contrast checker → · Palette generator →

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