#172F5B#172F5B

#172F5B is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.2% C 0.084 H 261.4°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#172F5B
RGBrgb(23, 47, 91)
HSLhsl(219, 60%, 22%)
HSVhsv(219, 75%, 36%)
CMYKcmyk(74.7%, 48.4%, 0%, 64.3%)
CIE-LABlab(19.92, 7.57, -29.18)
CIE-LCHlch(19.92, 30.15, 284.54°)
OKLaboklab(31.21% -0.0127 -0.0835)
OKLCHoklch(31.21% 0.084 261.4)
XYZxyz(3.2575, 2.9702, 10.2971)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F5B #5B4317
analogous
#17515B #172F5B #21175B
triadic
#172F5B #5B172F #2F5B17
tetradic
#172F5B #5B1751 #5B4317 #175B21
square
#172F5B #5B1751 #5B4317 #175B21
split-complementary
#172F5B #5B2117 #515B17
monochromatic
#060D18 #0B162A #172F5B #23488C #3061BD

Accessibility & contrast

On white

13.17
#172F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#172F5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F5B
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F5B#FFFFFF#000000##FFFFFF
##172F5B1.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19335D
Deuteranopia (green-blind)
#0C2D5A
Tritanopia (blue-blind)
#003940
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #172f5b;
/* rgb */ color: rgb(23, 47, 91);
/* oklch */ color: oklch(31.2% 0.084 261.4);
Tailwind
colors: {
  custom: {
    50: '#5e678a',
    500: '#172f5b',
    950: '#000000',
  },
}
SCSS
$custom: #172f5b;
$custom-light: #5e678a;
$custom-dark: #000000;
JSON
{
  "hex": "#172f5b",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 91
  },
  "hsl": {
    "h": 218.824,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.31213,
    "c": 0.08446,
    "h": 261.4
  },
  "luminance": 0.02971
}

Semantic roles & 50–950 ramp

primary
#172F5B
secondary
#92743C
accent
#AB45E3
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060B
muted
#797A7C

Preview Lab

Preview with #172F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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