#172A53#172A53

#172A53 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.4% C 0.079 H 263.6°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#172A53
RGBrgb(23, 42, 83)
HSLhsl(221, 57%, 21%)
HSVhsv(221, 72%, 33%)
CMYKcmyk(72.3%, 49.4%, 0%, 67.5%)
CIE-LABlab(17.75, 7.89, -27.33)
CIE-LCHlch(17.75, 28.45, 286.09°)
OKLaboklab(29.36% -0.0088 -0.0781)
OKLCHoklch(29.36% 0.079 263.6)
XYZxyz(2.7421, 2.4624, 8.5127)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A53 #534017
analogous
#174853 #172A53 #221753
triadic
#172A53 #53172A #2A5317
tetradic
#172A53 #531748 #534017 #175322
square
#172A53 #531748 #534017 #175322
split-complementary
#172A53 #532217 #485317
monochromatic
#070C18 #0A1223 #172A53 #244283 #325AB3

Accessibility & contrast

On white

14.07
#172A53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172A53
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A53#FFFFFF#000000##FFFFFF
##172A531.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162E55
Deuteranopia (green-blind)
#0B2952
Tritanopia (blue-blind)
#00333A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #172a53;
/* rgb */ color: rgb(23, 42, 83);
/* oklch */ color: oklch(29.4% 0.079 263.6);
Tailwind
colors: {
  custom: {
    50: '#5c6384',
    500: '#172a53',
    950: '#000000',
  },
}
SCSS
$custom: #172a53;
$custom-light: #5c6384;
$custom-dark: #000000;
JSON
{
  "hex": "#172a53",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 83
  },
  "hsl": {
    "h": 221,
    "s": 56.604,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29359,
    "c": 0.07864,
    "h": 263.6
  },
  "luminance": 0.02463
}

Semantic roles & 50–950 ramp

primary
#172A53
secondary
#8A713C
accent
#B048E0
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #172A53

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

Preview Lab → · Contrast checker → · Palette generator →

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