#172D62#172D62

#172D62 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.3% C 0.098 H 264.4°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#172D62
RGBrgb(23, 45, 98)
HSLhsl(222, 62%, 24%)
HSVhsv(222, 77%, 38%)
CMYKcmyk(76.5%, 54.1%, 0%, 61.6%)
CIE-LABlab(19.80, 11.95, -33.99)
CIE-LCHlch(19.80, 36.03, 289.37°)
OKLaboklab(31.29% -0.0095 -0.0977)
OKLCHoklch(31.29% 0.098 264.4)
XYZxyz(3.4956, 2.9404, 11.9362)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D62 #624C17
analogous
#175262 #172D62 #261762
triadic
#172D62 #62172D #2D6217
tetradic
#172D62 #621752 #624C17 #176226
square
#172D62 #621752 #624C17 #176226
split-complementary
#172D62 #622617 #526217
monochromatic
#060B19 #0B1630 #172D62 #234494 #2E5BC5

Accessibility & contrast

On white

13.22
#172D62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#172D62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D62
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D62#FFFFFF#000000##FFFFFF
##172D621.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3464
Deuteranopia (green-blind)
#002D61
Tritanopia (blue-blind)
#003A43
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #172d62;
/* rgb */ color: rgb(23, 45, 98);
/* oklch */ color: oklch(31.3% 0.098 264.4);
Tailwind
colors: {
  custom: {
    50: '#5f658f',
    500: '#172d62',
    950: '#000000',
  },
}
SCSS
$custom: #172d62;
$custom-light: #5f658f;
$custom-dark: #000000;
JSON
{
  "hex": "#172d62",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 98
  },
  "hsl": {
    "h": 222.4,
    "s": 61.983,
    "l": 23.725
  },
  "oklch": {
    "l": 0.31285,
    "c": 0.09813,
    "h": 264.4
  },
  "luminance": 0.02941
}

Semantic roles & 50–950 ramp

primary
#172D62
secondary
#997D3C
accent
#B543E5
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05050C
muted
#797A7D

Preview Lab

Preview with #172D62

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

Preview Lab → · Contrast checker → · Palette generator →

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