#172C59#172C59

#172C59 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.3% C 0.085 H 263.4°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#172C59
RGBrgb(23, 44, 89)
HSLhsl(221, 59%, 22%)
HSVhsv(221, 74%, 35%)
CMYKcmyk(74.2%, 50.6%, 0%, 65.1%)
CIE-LABlab(18.82, 8.92, -29.63)
CIE-LCHlch(18.82, 30.94, 286.75°)
OKLaboklab(30.32% -0.0099 -0.0849)
OKLCHoklch(30.32% 0.085 263.4)
XYZxyz(3.0566, 2.7045, 9.8102)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C59 #594417
analogous
#174D59 #172C59 #231759
triadic
#172C59 #59172C #2C5917
tetradic
#172C59 #59174D #594417 #175923
square
#172C59 #59174D #594417 #175923
split-complementary
#172C59 #592317 #4D5917
monochromatic
#060C18 #0A1428 #172C59 #24448A #305CBA

Accessibility & contrast

On white

13.63
#172C59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172C59
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C59#FFFFFF#000000##FFFFFF
##172C591.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15315B
Deuteranopia (green-blind)
#072B58
Tritanopia (blue-blind)
#00363E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172c59;
/* rgb */ color: rgb(23, 44, 89);
/* oklch */ color: oklch(30.3% 0.085 263.4);
Tailwind
colors: {
  custom: {
    50: '#5d6488',
    500: '#172c59',
    950: '#000000',
  },
}
SCSS
$custom: #172c59;
$custom-light: #5d6488;
$custom-dark: #000000;
JSON
{
  "hex": "#172c59",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 89
  },
  "hsl": {
    "h": 220.909,
    "s": 58.929,
    "l": 21.961
  },
  "oklch": {
    "l": 0.30319,
    "c": 0.08543,
    "h": 263.4
  },
  "luminance": 0.02705
}

Semantic roles & 50–950 ramp

primary
#172C59
secondary
#90753C
accent
#B046E2
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050B
muted
#79797C

Preview Lab

Preview with #172C59

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

Preview Lab → · Contrast checker → · Palette generator →

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