#172C52#172C52

#172C52 is a dark, moderate blue. Relative luminance 0.026; OKLCH L 29.8% C 0.074 H 261.3°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#172C52
RGBrgb(23, 44, 82)
HSLhsl(219, 56%, 21%)
HSVhsv(219, 72%, 32%)
CMYKcmyk(72%, 46.3%, 0%, 67.8%)
CIE-LABlab(18.33, 6.01, -25.73)
CIE-LCHlch(18.33, 26.42, 283.15°)
OKLaboklab(29.79% -0.0113 -0.0734)
OKLCHoklch(29.79% 0.074 261.3)
XYZxyz(2.7765, 2.5924, 8.3351)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C52 #523D17
analogous
#174952 #172C52 #1F1752
triadic
#172C52 #52172C #2C5217
tetradic
#172C52 #521749 #523D17 #17521F
square
#172C52 #521749 #523D17 #17521F
split-complementary
#172C52 #521F17 #495217
monochromatic
#070D18 #0A1222 #172C52 #244682 #325FB2

Accessibility & contrast

On white

13.83
#172C52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#172C52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172C52
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C52#FFFFFF#000000##FFFFFF
##172C521.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3053
Deuteranopia (green-blind)
#112A51
Tritanopia (blue-blind)
#00353B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #172c52;
/* rgb */ color: rgb(23, 44, 82);
/* oklch */ color: oklch(29.8% 0.074 261.3);
Tailwind
colors: {
  custom: {
    50: '#5c6483',
    500: '#172c52',
    950: '#000000',
  },
}
SCSS
$custom: #172c52;
$custom-light: #5c6483;
$custom-dark: #000000;
JSON
{
  "hex": "#172c52",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 82
  },
  "hsl": {
    "h": 218.644,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.29786,
    "c": 0.07426,
    "h": 261.3
  },
  "luminance": 0.02593
}

Semantic roles & 50–950 ramp

primary
#172C52
secondary
#896E3C
accent
#AA48DF
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050A
muted
#79797C

Preview Lab

Preview with #172C52

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

Preview Lab → · Contrast checker → · Palette generator →

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