#172B56#172B56

#172B56 is a dark, moderate blue. Relative luminance 0.026; OKLCH L 29.8% C 0.082 H 263.5°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#172B56
RGBrgb(23, 43, 86)
HSLhsl(221, 58%, 21%)
HSVhsv(221, 73%, 34%)
CMYKcmyk(73.3%, 50%, 0%, 66.3%)
CIE-LABlab(18.28, 8.40, -28.49)
CIE-LCHlch(18.28, 29.70, 286.43°)
OKLaboklab(29.84% -0.0093 -0.0815)
OKLCHoklch(29.84% 0.082 263.5)
XYZxyz(2.8963, 2.5815, 9.1479)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B56 #564217
analogous
#174B56 #172B56 #231756
triadic
#172B56 #56172B #2B5617
tetradic
#172B56 #56174B #564217 #175623
square
#172B56 #56174B #564217 #175623
split-complementary
#172B56 #562317 #4B5617
monochromatic
#060C18 #0A1326 #172B56 #244386 #315BB7

Accessibility & contrast

On white

13.85
#172B56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#172B56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B56
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B56#FFFFFF#000000##FFFFFF
##172B561.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153058
Deuteranopia (green-blind)
#092A55
Tritanopia (blue-blind)
#00353C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #172b56;
/* rgb */ color: rgb(23, 43, 86);
/* oklch */ color: oklch(29.8% 0.082 263.5);
Tailwind
colors: {
  custom: {
    50: '#5d6386',
    500: '#172b56',
    950: '#000000',
  },
}
SCSS
$custom: #172b56;
$custom-light: #5d6386;
$custom-dark: #000000;
JSON
{
  "hex": "#172b56",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 86
  },
  "hsl": {
    "h": 220.952,
    "s": 57.798,
    "l": 21.373
  },
  "oklch": {
    "l": 0.29838,
    "c": 0.08205,
    "h": 263.5
  },
  "luminance": 0.02582
}

Semantic roles & 50–950 ramp

primary
#172B56
secondary
#8D733C
accent
#B047E1
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #172B56

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

Preview Lab → · Contrast checker → · Palette generator →

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