#172C5B#172C5B

#172C5B is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.5% C 0.089 H 263.8°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#172C5B
RGBrgb(23, 44, 91)
HSLhsl(221, 60%, 22%)
HSVhsv(221, 75%, 36%)
CMYKcmyk(74.7%, 51.6%, 0%, 64.3%)
CIE-LABlab(18.96, 9.75, -30.72)
CIE-LCHlch(18.96, 32.23, 287.62°)
OKLaboklab(30.48% -0.0095 -0.0881)
OKLCHoklch(30.48% 0.089 263.8)
XYZxyz(3.1417, 2.7385, 10.2585)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C5B #5B4617
analogous
#174E5B #172C5B #24175B
triadic
#172C5B #5B172C #2C5B17
tetradic
#172C5B #5B174E #5B4617 #175B24
square
#172C5B #5B174E #5B4617 #175B24
split-complementary
#172C5B #5B2417 #4E5B17
monochromatic
#060C18 #0B142A #172C5B #23448C #305BBD

Accessibility & contrast

On white

13.57
#172C5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#172C5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172C5B
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C5B#FFFFFF#000000##FFFFFF
##172C5B1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13315D
Deuteranopia (green-blind)
#032B5A
Tritanopia (blue-blind)
#00373F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172c5b;
/* rgb */ color: rgb(23, 44, 91);
/* oklch */ color: oklch(30.5% 0.089 263.8);
Tailwind
colors: {
  custom: {
    50: '#5e648a',
    500: '#172c5b',
    950: '#000000',
  },
}
SCSS
$custom: #172c5b;
$custom-light: #5e648a;
$custom-dark: #000000;
JSON
{
  "hex": "#172c5b",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 91
  },
  "hsl": {
    "h": 221.471,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.30477,
    "c": 0.08859,
    "h": 263.8
  },
  "luminance": 0.02739
}

Semantic roles & 50–950 ramp

primary
#172C5B
secondary
#92773C
accent
#B245E3
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050B
muted
#79797C

Preview Lab

Preview with #172C5B

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

Preview Lab → · Contrast checker → · Palette generator →

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