#172F6D#172F6D

#172F6D is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.7% C 0.112 H 264.8°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#172F6D
RGBrgb(23, 47, 109)
HSLhsl(223, 65%, 26%)
HSVhsv(223, 79%, 43%)
CMYKcmyk(78.9%, 56.9%, 0%, 57.3%)
CIE-LABlab(21.28, 15.09, -38.76)
CIE-LCHlch(21.28, 41.60, 291.27°)
OKLaboklab(32.68% -0.0101 -0.1117)
OKLCHoklch(32.68% 0.112 264.8)
XYZxyz(4.1292, 3.3189, 14.8880)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F6D #6D5517
analogous
#175A6D #172F6D #2A176D
triadic
#172F6D #6D172F #2F6D17
tetradic
#172F6D #6D175A #6D5517 #176D2A
square
#172F6D #6D175A #6D5517 #176D2A
split-complementary
#172F6D #6D2A17 #5A6D17
monochromatic
#050B19 #0C193A #172F6D #2245A0 #2C5BD2

Accessibility & contrast

On white

12.62
#172F6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#172F6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F6D
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F6D#FFFFFF#000000##FFFFFF
##172F6D1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00376F
Deuteranopia (green-blind)
#002F6C
Tritanopia (blue-blind)
#003E49
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #172f6d;
/* rgb */ color: rgb(23, 47, 109);
/* oklch */ color: oklch(32.7% 0.112 264.8);
Tailwind
colors: {
  custom: {
    50: '#626797',
    500: '#172f6d',
    950: '#000000',
  },
}
SCSS
$custom: #172f6d;
$custom-light: #626797;
$custom-dark: #000000;
JSON
{
  "hex": "#172f6d",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 109
  },
  "hsl": {
    "h": 223.256,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.32678,
    "c": 0.11214,
    "h": 264.8
  },
  "luminance": 0.03319
}

Semantic roles & 50–950 ramp

primary
#172F6D
secondary
#A3863D
accent
#B940E8
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #172F6D

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

Preview Lab → · Contrast checker → · Palette generator →

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