#172A55#172A55

#172A55 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.5% C 0.082 H 264.1°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#172A55
RGBrgb(23, 42, 85)
HSLhsl(222, 57%, 21%)
HSVhsv(222, 73%, 33%)
CMYKcmyk(72.9%, 50.6%, 0%, 66.7%)
CIE-LABlab(17.89, 8.72, -28.45)
CIE-LCHlch(17.89, 29.75, 287.04°)
OKLaboklab(29.51% -0.0084 -0.0814)
OKLCHoklch(29.51% 0.082 264.1)
XYZxyz(2.8204, 2.4937, 8.9253)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A55 #554217
analogous
#174955 #172A55 #231755
triadic
#172A55 #55172A #2A5517
tetradic
#172A55 #551749 #554217 #175523
square
#172A55 #551749 #554217 #175523
split-complementary
#172A55 #552317 #495517
monochromatic
#070C18 #0A1225 #172A55 #244285 #315AB5

Accessibility & contrast

On white

14.01
#172A55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#172A55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A55
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A55#FFFFFF#000000##FFFFFF
##172A551.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142F57
Deuteranopia (green-blind)
#082954
Tritanopia (blue-blind)
#00343B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #172a55;
/* rgb */ color: rgb(23, 42, 85);
/* oklch */ color: oklch(29.5% 0.082 264.1);
Tailwind
colors: {
  custom: {
    50: '#5c6385',
    500: '#172a55',
    950: '#000000',
  },
}
SCSS
$custom: #172a55;
$custom-light: #5c6385;
$custom-dark: #000000;
JSON
{
  "hex": "#172a55",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 85
  },
  "hsl": {
    "h": 221.613,
    "s": 57.407,
    "l": 21.176
  },
  "oklch": {
    "l": 0.29514,
    "c": 0.08186,
    "h": 264.1
  },
  "luminance": 0.02494
}

Semantic roles & 50–950 ramp

primary
#172A55
secondary
#8C733C
accent
#B247E1
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #172A55

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

Preview Lab → · Contrast checker → · Palette generator →

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