#172F6C#172F6C

#172F6C is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.6% C 0.111 H 264.7°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#172F6C
RGBrgb(23, 47, 108)
HSLhsl(223, 65%, 26%)
HSVhsv(223, 79%, 42%)
CMYKcmyk(78.7%, 56.5%, 0%, 57.6%)
CIE-LABlab(21.20, 14.67, -38.25)
CIE-LCHlch(21.20, 40.96, 290.99°)
OKLaboklab(32.59% -0.0102 -0.1102)
OKLCHoklch(32.59% 0.111 264.7)
XYZxyz(4.0757, 3.2975, 14.6061)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F6C #6C5417
analogous
#17596C #172F6C #29176C
triadic
#172F6C #6C172F #2F6C17
tetradic
#172F6C #6C1759 #6C5417 #176C29
square
#172F6C #6C1759 #6C5417 #176C29
split-complementary
#172F6C #6C2917 #596C17
monochromatic
#050B19 #0C193A #172F6C #22459E #2C5BD1

Accessibility & contrast

On white

12.65
#172F6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172F6C
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F6C#FFFFFF#000000##FFFFFF
##172F6C1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02376E
Deuteranopia (green-blind)
#002F6B
Tritanopia (blue-blind)
#003E48
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #172f6c;
/* rgb */ color: rgb(23, 47, 108);
/* oklch */ color: oklch(32.6% 0.111 264.7);
Tailwind
colors: {
  custom: {
    50: '#626797',
    500: '#172f6c',
    950: '#000000',
  },
}
SCSS
$custom: #172f6c;
$custom-light: #626797;
$custom-dark: #000000;
JSON
{
  "hex": "#172f6c",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 108
  },
  "hsl": {
    "h": 223.059,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.32592,
    "c": 0.11064,
    "h": 264.7
  },
  "luminance": 0.03298
}

Semantic roles & 50–950 ramp

primary
#172F6C
secondary
#A2853D
accent
#B840E8
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #172F6C

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

Preview Lab → · Contrast checker → · Palette generator →

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