#172A56#172A56

#172A56 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.6% C 0.083 H 264.3°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#172A56
RGBrgb(23, 42, 86)
HSLhsl(222, 58%, 21%)
HSVhsv(222, 73%, 34%)
CMYKcmyk(73.3%, 51.2%, 0%, 66.3%)
CIE-LABlab(17.96, 9.13, -29.00)
CIE-LCHlch(17.96, 30.41, 287.48°)
OKLaboklab(29.59% -0.0082 -0.0831)
OKLCHoklch(29.59% 0.083 264.3)
XYZxyz(2.8604, 2.5097, 9.1360)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A56 #564317
analogous
#174A56 #172A56 #241756
triadic
#172A56 #56172A #2A5617
tetradic
#172A56 #56174A #564317 #175624
square
#172A56 #56174A #564317 #175624
split-complementary
#172A56 #562417 #4A5617
monochromatic
#060C18 #0A1226 #172A56 #244286 #3159B7

Accessibility & contrast

On white

13.98
#172A56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#172A56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A56
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A56#FFFFFF#000000##FFFFFF
##172A561.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132F58
Deuteranopia (green-blind)
#062955
Tritanopia (blue-blind)
#00343B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #172a56;
/* rgb */ color: rgb(23, 42, 86);
/* oklch */ color: oklch(29.6% 0.083 264.3);
Tailwind
colors: {
  custom: {
    50: '#5d6386',
    500: '#172a56',
    950: '#000000',
  },
}
SCSS
$custom: #172a56;
$custom-light: #5d6386;
$custom-dark: #000000;
JSON
{
  "hex": "#172a56",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 86
  },
  "hsl": {
    "h": 221.905,
    "s": 57.798,
    "l": 21.373
  },
  "oklch": {
    "l": 0.29592,
    "c": 0.08347,
    "h": 264.3
  },
  "luminance": 0.0251
}

Semantic roles & 50–950 ramp

primary
#172A56
secondary
#8D753C
accent
#B347E1
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #172A56

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

Preview Lab → · Contrast checker → · Palette generator →

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