#172C55#172C55

#172C55 is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.0% C 0.079 H 262.3°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#172C55
RGBrgb(23, 44, 85)
HSLhsl(220, 57%, 21%)
HSVhsv(220, 73%, 33%)
CMYKcmyk(72.9%, 48.2%, 0%, 66.7%)
CIE-LABlab(18.54, 7.25, -27.41)
CIE-LCHlch(18.54, 28.36, 284.82°)
OKLaboklab(30.01% -0.0106 -0.0783)
OKLCHoklch(30.01% 0.079 262.3)
XYZxyz(2.8931, 2.6391, 8.9495)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C55 #554017
analogous
#174B55 #172C55 #211755
triadic
#172C55 #55172C #2C5517
tetradic
#172C55 #55174B #554017 #175521
square
#172C55 #55174B #554017 #175521
split-complementary
#172C55 #552117 #4B5517
monochromatic
#070C18 #0A1325 #172C55 #244585 #315EB5

Accessibility & contrast

On white

13.75
#172C55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#172C55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172C55
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C55#FFFFFF#000000##FFFFFF
##172C551.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183057
Deuteranopia (green-blind)
#0D2A54
Tritanopia (blue-blind)
#00353C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #172c55;
/* rgb */ color: rgb(23, 44, 85);
/* oklch */ color: oklch(30.0% 0.079 262.3);
Tailwind
colors: {
  custom: {
    50: '#5c6485',
    500: '#172c55',
    950: '#000000',
  },
}
SCSS
$custom: #172c55;
$custom-light: #5c6485;
$custom-dark: #000000;
JSON
{
  "hex": "#172c55",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 85
  },
  "hsl": {
    "h": 219.677,
    "s": 57.407,
    "l": 21.176
  },
  "oklch": {
    "l": 0.3001,
    "c": 0.07907,
    "h": 262.3
  },
  "luminance": 0.02639
}

Semantic roles & 50–950 ramp

primary
#172C55
secondary
#8C713C
accent
#AD47E1
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #172C55

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

Preview Lab → · Contrast checker → · Palette generator →

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