#172C66#172C66

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

Color values

HEX#172C66
RGBrgb(23, 44, 102)
HSLhsl(224, 63%, 25%)
HSVhsv(224, 77%, 40%)
CMYKcmyk(77.5%, 56.9%, 0%, 60%)
CIE-LABlab(19.81, 14.35, -36.59)
CIE-LCHlch(19.81, 39.31, 291.41°)
OKLaboklab(31.39% -0.0081 -0.1054)
OKLCHoklch(31.39% 0.106 265.6)
XYZxyz(3.6515, 2.9424, 12.9433)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C66 #665117
analogous
#175466 #172C66 #2A1766
triadic
#172C66 #66172C #2C6617
tetradic
#172C66 #661754 #665117 #17662A
square
#172C66 #661754 #665117 #17662A
split-complementary
#172C66 #662A17 #546617
monochromatic
#060B19 #0C1634 #172C66 #224298 #2E57CA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##172C66#FFFFFF#000000##FFFFFF
##172C661.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)
#023468
Deuteranopia (green-blind)
#002C65
Tritanopia (blue-blind)
#003A44
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #172c66;
/* rgb */ color: rgb(23, 44, 102);
/* oklch */ color: oklch(31.4% 0.106 265.6);
Tailwind
colors: {
  custom: {
    50: '#616492',
    500: '#172c66',
    950: '#000000',
  },
}
SCSS
$custom: #172c66;
$custom-light: #616492;
$custom-dark: #000000;
JSON
{
  "hex": "#172c66",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 102
  },
  "hsl": {
    "h": 224.051,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.31391,
    "c": 0.10567,
    "h": 265.6
  },
  "luminance": 0.02943
}

Semantic roles & 50–950 ramp

primary
#172C66
secondary
#9C833C
accent
#BA42E6
background
#F6F5F9
surface
#EBEAF1
border
#C6C6CB
text
#05050D
muted
#7A797E

Preview Lab

Preview with #172C66

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

Preview Lab → · Contrast checker → · Palette generator →

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