#172D52#172D52

#172D52 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.0% C 0.073 H 260.2°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#172D52
RGBrgb(23, 45, 82)
HSLhsl(218, 56%, 21%)
HSVhsv(218, 72%, 32%)
CMYKcmyk(72%, 45.1%, 0%, 67.8%)
CIE-LABlab(18.66, 5.28, -25.20)
CIE-LCHlch(18.66, 25.75, 281.83°)
OKLaboklab(30.04% -0.0124 -0.0718)
OKLCHoklch(30.04% 0.073 260.2)
XYZxyz(2.8142, 2.6679, 8.3476)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D52 #523C17
analogous
#174A52 #172D52 #1E1752
triadic
#172D52 #52172D #2D5217
tetradic
#172D52 #52174A #523C17 #17521E
square
#172D52 #52174A #523C17 #17521E
split-complementary
#172D52 #521E17 #4A5217
monochromatic
#070D18 #0A1322 #172D52 #244782 #3261B2

Accessibility & contrast

On white

13.69
#172D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#172D52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D52
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D52#FFFFFF#000000##FFFFFF
##172D521.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3053
Deuteranopia (green-blind)
#132B51
Tritanopia (blue-blind)
#00353B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #172d52;
/* rgb */ color: rgb(23, 45, 82);
/* oklch */ color: oklch(30.0% 0.073 260.2);
Tailwind
colors: {
  custom: {
    50: '#5c6583',
    500: '#172d52',
    950: '#000000',
  },
}
SCSS
$custom: #172d52;
$custom-light: #5c6583;
$custom-dark: #000000;
JSON
{
  "hex": "#172d52",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 82
  },
  "hsl": {
    "h": 217.627,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.30041,
    "c": 0.07291,
    "h": 260.2
  },
  "luminance": 0.02668
}

Semantic roles & 50–950 ramp

primary
#172D52
secondary
#896C3C
accent
#A748DF
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04050A
muted
#797A7C

Preview Lab

Preview with #172D52

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

Preview Lab → · Contrast checker → · Palette generator →

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