#172C58#172C58

#172C58 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.2% C 0.084 H 263.1°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#172C58
RGBrgb(23, 44, 88)
HSLhsl(221, 59%, 22%)
HSVhsv(221, 74%, 35%)
CMYKcmyk(73.9%, 50%, 0%, 65.5%)
CIE-LABlab(18.75, 8.50, -29.08)
CIE-LCHlch(18.75, 30.29, 286.30°)
OKLaboklab(30.24% -0.01 -0.0832)
OKLCHoklch(30.24% 0.084 263.1)
XYZxyz(3.0149, 2.6878, 9.5905)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C58 #584317
analogous
#174D58 #172C58 #221758
triadic
#172C58 #58172C #2C5817
tetradic
#172C58 #58174D #584317 #175822
square
#172C58 #58174D #584317 #175822
split-complementary
#172C58 #582217 #4D5817
monochromatic
#060C18 #0A1427 #172C58 #244489 #305DB9

Accessibility & contrast

On white

13.66
#172C58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172C58
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C58#FFFFFF#000000##FFFFFF
##172C581.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16315A
Deuteranopia (green-blind)
#082B57
Tritanopia (blue-blind)
#00363D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172c58;
/* rgb */ color: rgb(23, 44, 88);
/* oklch */ color: oklch(30.2% 0.084 263.1);
Tailwind
colors: {
  custom: {
    50: '#5d6487',
    500: '#172c58',
    950: '#000000',
  },
}
SCSS
$custom: #172c58;
$custom-light: #5d6487;
$custom-dark: #000000;
JSON
{
  "hex": "#172c58",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 88
  },
  "hsl": {
    "h": 220.615,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.30241,
    "c": 0.08384,
    "h": 263.1
  },
  "luminance": 0.02688
}

Semantic roles & 50–950 ramp

primary
#172C58
secondary
#8F743C
accent
#AF46E2
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#05050B
muted
#79797C

Preview Lab

Preview with #172C58

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

Preview Lab → · Contrast checker → · Palette generator →

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