#172C4F#172C4F

#172C4F is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.6% C 0.069 H 260.0°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#172C4F
RGBrgb(23, 44, 79)
HSLhsl(218, 55%, 20%)
HSVhsv(218, 71%, 31%)
CMYKcmyk(70.9%, 44.3%, 0%, 69%)
CIE-LABlab(18.13, 4.77, -24.02)
CIE-LCHlch(18.13, 24.49, 281.23°)
OKLaboklab(29.57% -0.012 -0.0684)
OKLCHoklch(29.57% 0.069 260)
XYZxyz(2.6648, 2.5478, 7.7470)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C4F #4F3A17
analogous
#17484F #172C4F #1E174F
triadic
#172C4F #4F172C #2C4F17
tetradic
#172C4F #4F1748 #4F3A17 #174F1E
square
#172C4F #4F1748 #4F3A17 #174F1E
split-complementary
#172C4F #4F1E17 #484F17
monochromatic
#070D18 #091220 #172C4F #25467E #3361AE

Accessibility & contrast

On white

13.91
#172C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#172C4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172C4F
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C4F#FFFFFF#000000##FFFFFF
##172C4F1.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2F50
Deuteranopia (green-blind)
#142A4E
Tritanopia (blue-blind)
#003439
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #172c4f;
/* rgb */ color: rgb(23, 44, 79);
/* oklch */ color: oklch(29.6% 0.069 260.0);
Tailwind
colors: {
  custom: {
    50: '#5b6480',
    500: '#172c4f',
    950: '#000000',
  },
}
SCSS
$custom: #172c4f;
$custom-light: #5b6480;
$custom-dark: #000000;
JSON
{
  "hex": "#172c4f",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 79
  },
  "hsl": {
    "h": 217.5,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.29568,
    "c": 0.06944,
    "h": 260
  },
  "luminance": 0.02548
}

Semantic roles & 50–950 ramp

primary
#172C4F
secondary
#866A3C
accent
#A64ADE
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #172C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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