#172A52#172A52

#172A52 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.3% C 0.077 H 263.3°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#172A52
RGBrgb(23, 42, 82)
HSLhsl(221, 56%, 21%)
HSVhsv(221, 72%, 32%)
CMYKcmyk(72%, 48.8%, 0%, 67.8%)
CIE-LABlab(17.68, 7.47, -26.77)
CIE-LCHlch(17.68, 27.80, 285.59°)
OKLaboklab(29.28% -0.009 -0.0765)
OKLCHoklch(29.28% 0.077 263.3)
XYZxyz(2.7038, 2.4470, 8.3108)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A52 #523F17
analogous
#174752 #172A52 #211752
triadic
#172A52 #52172A #2A5217
tetradic
#172A52 #521747 #523F17 #175221
square
#172A52 #521747 #523F17 #175221
split-complementary
#172A52 #522117 #475217
monochromatic
#070C18 #0A1222 #172A52 #244282 #325BB2

Accessibility & contrast

On white

14.10
#172A52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#172A52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A52
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A52#FFFFFF#000000##FFFFFF
##172A521.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172E54
Deuteranopia (green-blind)
#0C2951
Tritanopia (blue-blind)
#00333A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #172a52;
/* rgb */ color: rgb(23, 42, 82);
/* oklch */ color: oklch(29.3% 0.077 263.3);
Tailwind
colors: {
  custom: {
    50: '#5c6383',
    500: '#172a52',
    950: '#000000',
  },
}
SCSS
$custom: #172a52;
$custom-light: #5c6383;
$custom-dark: #000000;
JSON
{
  "hex": "#172a52",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 82
  },
  "hsl": {
    "h": 220.678,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.29282,
    "c": 0.07704,
    "h": 263.3
  },
  "luminance": 0.02447
}

Semantic roles & 50–950 ramp

primary
#172A52
secondary
#89703C
accent
#AF48DF
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050A
muted
#79797C

Preview Lab

Preview with #172A52

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

Preview Lab → · Contrast checker → · Palette generator →

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