#172C56#172C56

#172C56 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.1% C 0.081 H 262.6°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#172C56
RGBrgb(23, 44, 86)
HSLhsl(220, 58%, 21%)
HSVhsv(220, 73%, 34%)
CMYKcmyk(73.3%, 48.8%, 0%, 66.3%)
CIE-LABlab(18.61, 7.67, -27.97)
CIE-LCHlch(18.61, 29.00, 285.33°)
OKLaboklab(30.09% -0.0104 -0.08)
OKLCHoklch(30.09% 0.081 262.6)
XYZxyz(2.9332, 2.6551, 9.1602)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C56 #564117
analogous
#174C56 #172C56 #221756
triadic
#172C56 #56172C #2C5617
tetradic
#172C56 #56174C #564117 #175622
square
#172C56 #56174C #564117 #175622
split-complementary
#172C56 #562217 #4C5617
monochromatic
#060C18 #0A1326 #172C56 #244586 #315DB7

Accessibility & contrast

On white

13.72
#172C56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172C56
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C56#FFFFFF#000000##FFFFFF
##172C561.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173058
Deuteranopia (green-blind)
#0C2B55
Tritanopia (blue-blind)
#00363C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #172c56;
/* rgb */ color: rgb(23, 44, 86);
/* oklch */ color: oklch(30.1% 0.081 262.6);
Tailwind
colors: {
  custom: {
    50: '#5d6486',
    500: '#172c56',
    950: '#000000',
  },
}
SCSS
$custom: #172c56;
$custom-light: #5d6486;
$custom-dark: #000000;
JSON
{
  "hex": "#172c56",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 86
  },
  "hsl": {
    "h": 220,
    "s": 57.798,
    "l": 21.373
  },
  "oklch": {
    "l": 0.30086,
    "c": 0.08067,
    "h": 262.6
  },
  "luminance": 0.02655
}

Semantic roles & 50–950 ramp

primary
#172C56
secondary
#8D723C
accent
#AE47E1
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #172C56

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

Preview Lab → · Contrast checker → · Palette generator →

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