#172C6F#172C6F

#172C6F is a dark, moderate blue. Relative luminance 0.031; OKLCH L 32.2% C 0.119 H 266.4°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#172C6F
RGBrgb(23, 44, 111)
HSLhsl(226, 66%, 26%)
HSVhsv(226, 79%, 44%)
CMYKcmyk(79.3%, 60.4%, 0%, 56.5%)
CIE-LABlab(20.56, 18.09, -41.22)
CIE-LCHlch(20.56, 45.01, 293.69°)
OKLaboklab(32.19% -0.0075 -0.119)
OKLCHoklch(32.19% 0.119 266.4)
XYZxyz(4.1223, 3.1308, 15.4229)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C6F #6F5A17
analogous
#17586F #172C6F #2E176F
triadic
#172C6F #6F172C #2C6F17
tetradic
#172C6F #6F1758 #6F5A17 #176F2E
square
#172C6F #6F1758 #6F5A17 #176F2E
split-complementary
#172C6F #6F2E17 #586F17
monochromatic
#050A19 #0C183C #172C6F #2240A2 #2D55D3

Accessibility & contrast

On white

12.91
#172C6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#172C6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172C6F
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C6F#FFFFFF#000000##FFFFFF
##172C6F1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003671
Deuteranopia (green-blind)
#002E6E
Tritanopia (blue-blind)
#003D49
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #172c6f;
/* rgb */ color: rgb(23, 44, 111);
/* oklch */ color: oklch(32.2% 0.119 266.4);
Tailwind
colors: {
  custom: {
    50: '#636499',
    500: '#172c6f',
    950: '#000000',
  },
}
SCSS
$custom: #172c6f;
$custom-light: #636499;
$custom-dark: #000000;
JSON
{
  "hex": "#172c6f",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 111
  },
  "hsl": {
    "h": 225.682,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.3219,
    "c": 0.1192,
    "h": 266.4
  },
  "luminance": 0.03131
}

Semantic roles & 50–950 ramp

primary
#172C6F
secondary
#A58C3D
accent
#C03FE9
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172C6F

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

Preview Lab → · Contrast checker → · Palette generator →

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