#172F56#172F56

#172F56 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 30.8% C 0.077 H 259.6°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#172F56
RGBrgb(23, 47, 86)
HSLhsl(217, 58%, 21%)
HSVhsv(217, 73%, 34%)
CMYKcmyk(73.3%, 45.3%, 0%, 66.3%)
CIE-LABlab(19.58, 5.49, -26.41)
CIE-LCHlch(19.58, 26.97, 281.74°)
OKLaboklab(30.84% -0.0138 -0.0753)
OKLCHoklch(30.84% 0.077 259.6)
XYZxyz(3.0490, 2.8868, 9.1988)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F56 #563E17
analogous
#174F56 #172F56 #1F1756
triadic
#172F56 #56172F #2F5617
tetradic
#172F56 #56174F #563E17 #17561F
square
#172F56 #56174F #563E17 #17561F
split-complementary
#172F56 #561F17 #4F5617
monochromatic
#060D18 #0A1526 #172F56 #244986 #3164B7

Accessibility & contrast

On white

13.31
#172F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#172F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F56
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F56#FFFFFF#000000##FFFFFF
##172F561.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3358
Deuteranopia (green-blind)
#132D55
Tritanopia (blue-blind)
#00383E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172f56;
/* rgb */ color: rgb(23, 47, 86);
/* oklch */ color: oklch(30.8% 0.077 259.6);
Tailwind
colors: {
  custom: {
    50: '#5c6786',
    500: '#172f56',
    950: '#000000',
  },
}
SCSS
$custom: #172f56;
$custom-light: #5c6786;
$custom-dark: #000000;
JSON
{
  "hex": "#172f56",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 86
  },
  "hsl": {
    "h": 217.143,
    "s": 57.798,
    "l": 21.373
  },
  "oklch": {
    "l": 0.30841,
    "c": 0.07659,
    "h": 259.6
  },
  "luminance": 0.02887
}

Semantic roles & 50–950 ramp

primary
#172F56
secondary
#8D6E3C
accent
#A647E1
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04060B
muted
#797A7C

Preview Lab

Preview with #172F56

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

Preview Lab → · Contrast checker → · Palette generator →

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