#172B5A#172B5A

#172B5A is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.2% C 0.088 H 264.4°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#172B5A
RGBrgb(23, 43, 90)
HSLhsl(222, 59%, 22%)
HSVhsv(222, 74%, 35%)
CMYKcmyk(74.4%, 52.2%, 0%, 64.7%)
CIE-LABlab(18.57, 10.07, -30.69)
CIE-LCHlch(18.57, 32.30, 288.17°)
OKLaboklab(30.15% -0.0086 -0.088)
OKLCHoklch(30.15% 0.088 264.4)
XYZxyz(3.0620, 2.6478, 10.0206)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B5A #5A4617
analogous
#174C5A #172B5A #25175A
triadic
#172B5A #5A172B #2B5A17
tetradic
#172B5A #5A174C #5A4617 #175A25
square
#172B5A #5A174C #5A4617 #175A25
split-complementary
#172B5A #5A2517 #4C5A17
monochromatic
#060C18 #0B1429 #172B5A #23428B #305ABB

Accessibility & contrast

On white

13.73
#172B5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172B5A
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B5A#FFFFFF#000000##FFFFFF
##172B5A1.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11305C
Deuteranopia (green-blind)
#022A59
Tritanopia (blue-blind)
#00363E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #172b5a;
/* rgb */ color: rgb(23, 43, 90);
/* oklch */ color: oklch(30.2% 0.088 264.4);
Tailwind
colors: {
  custom: {
    50: '#5e6389',
    500: '#172b5a',
    950: '#000000',
  },
}
SCSS
$custom: #172b5a;
$custom-light: #5e6389;
$custom-dark: #000000;
JSON
{
  "hex": "#172b5a",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 90
  },
  "hsl": {
    "h": 222.09,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.30155,
    "c": 0.08841,
    "h": 264.4
  },
  "luminance": 0.02648
}

Semantic roles & 50–950 ramp

primary
#172B5A
secondary
#91783C
accent
#B445E2
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050B
muted
#79797C

Preview Lab

Preview with #172B5A

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

Preview Lab → · Contrast checker → · Palette generator →

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