#172D5E#172D5E

#172D5E is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.0% C 0.092 H 263.7°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#172D5E
RGBrgb(23, 45, 94)
HSLhsl(221, 61%, 23%)
HSVhsv(221, 76%, 37%)
CMYKcmyk(75.5%, 52.1%, 0%, 63.1%)
CIE-LABlab(19.50, 10.28, -31.84)
CIE-LCHlch(19.50, 33.46, 287.89°)
OKLaboklab(30.96% -0.0101 -0.0914)
OKLCHoklch(30.96% 0.092 263.7)
XYZxyz(3.3114, 2.8667, 10.9663)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D5E #5E4817
analogous
#17515E #172D5E #24175E
triadic
#172D5E #5E172D #2D5E17
tetradic
#172D5E #5E1751 #5E4817 #175E24
square
#172D5E #5E1751 #5E4817 #175E24
split-complementary
#172D5E #5E2417 #515E17
monochromatic
#060C19 #0B152D #172D5E #23458F #2F5CC0

Accessibility & contrast

On white

13.35
#172D5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#172D5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D5E
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D5E#FFFFFF#000000##FFFFFF
##172D5E1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123360
Deuteranopia (green-blind)
#012C5D
Tritanopia (blue-blind)
#003941
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172d5e;
/* rgb */ color: rgb(23, 45, 94);
/* oklch */ color: oklch(31.0% 0.092 263.7);
Tailwind
colors: {
  custom: {
    50: '#5e658c',
    500: '#172d5e',
    950: '#000000',
  },
}
SCSS
$custom: #172d5e;
$custom-light: #5e658c;
$custom-dark: #000000;
JSON
{
  "hex": "#172d5e",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 94
  },
  "hsl": {
    "h": 221.408,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.30959,
    "c": 0.09191,
    "h": 263.7
  },
  "luminance": 0.02867
}

Semantic roles & 50–950 ramp

primary
#172D5E
secondary
#95793C
accent
#B244E4
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05050C
muted
#797A7D

Preview Lab

Preview with #172D5E

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

Preview Lab → · Contrast checker → · Palette generator →

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