#172D63#172D63

#172D63 is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.4% C 0.100 H 264.6°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#172D63
RGBrgb(23, 45, 99)
HSLhsl(223, 62%, 24%)
HSVhsv(223, 77%, 39%)
CMYKcmyk(76.8%, 54.5%, 0%, 61.2%)
CIE-LABlab(19.88, 12.37, -34.52)
CIE-LCHlch(19.88, 36.67, 289.71°)
OKLaboklab(31.37% -0.0094 -0.0992)
OKLCHoklch(31.37% 0.1 264.6)
XYZxyz(3.5431, 2.9594, 12.1865)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D63 #634D17
analogous
#175363 #172D63 #271763
triadic
#172D63 #63172D #2D6317
tetradic
#172D63 #631753 #634D17 #176327
square
#172D63 #631753 #634D17 #176327
split-complementary
#172D63 #632717 #536317
monochromatic
#060B19 #0B1631 #172D63 #234495 #2E5AC6

Accessibility & contrast

On white

13.19
#172D63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172D63
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D63#FFFFFF#000000##FFFFFF
##172D631.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172d63;
/* rgb */ color: rgb(23, 45, 99);
/* oklch */ color: oklch(31.4% 0.100 264.6);
Tailwind
colors: {
  custom: {
    50: '#606590',
    500: '#172d63',
    950: '#000000',
  },
}
SCSS
$custom: #172d63;
$custom-light: #606590;
$custom-dark: #000000;
JSON
{
  "hex": "#172d63",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 99
  },
  "hsl": {
    "h": 222.632,
    "s": 62.295,
    "l": 23.922
  },
  "oklch": {
    "l": 0.31368,
    "c": 0.09968,
    "h": 264.6
  },
  "luminance": 0.0296
}

Semantic roles & 50–950 ramp

primary
#172D63
secondary
#9A7F3C
accent
#B642E5
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05050C
muted
#797A7D

Preview Lab

Preview with #172D63

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

Preview Lab → · Contrast checker → · Palette generator →

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