#172D68#172D68

#172D68 is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.8% C 0.107 H 265.3°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#172D68
RGBrgb(23, 45, 104)
HSLhsl(224, 64%, 25%)
HSVhsv(224, 78%, 41%)
CMYKcmyk(77.9%, 56.7%, 0%, 59.2%)
CIE-LABlab(20.27, 14.46, -37.15)
CIE-LCHlch(20.27, 39.86, 291.26°)
OKLaboklab(31.79% -0.0088 -0.107)
OKLCHoklch(31.79% 0.107 265.3)
XYZxyz(3.7895, 3.0580, 13.4846)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D68 #685217
analogous
#175568 #172D68 #2A1768
triadic
#172D68 #68172D #2D6817
tetradic
#172D68 #681755 #685217 #17682A
square
#172D68 #681755 #685217 #17682A
split-complementary
#172D68 #682A17 #556817
monochromatic
#060B19 #0C1736 #172D68 #22439A #2D58CC

Accessibility & contrast

On white

13.03
#172D68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#172D68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D68
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D68#FFFFFF#000000##FFFFFF
##172D681.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02356A
Deuteranopia (green-blind)
#002D67
Tritanopia (blue-blind)
#003B45
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #172d68;
/* rgb */ color: rgb(23, 45, 104);
/* oklch */ color: oklch(31.8% 0.107 265.3);
Tailwind
colors: {
  custom: {
    50: '#616594',
    500: '#172d68',
    950: '#000000',
  },
}
SCSS
$custom: #172d68;
$custom-light: #616594;
$custom-dark: #000000;
JSON
{
  "hex": "#172d68",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 104
  },
  "hsl": {
    "h": 223.704,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.31792,
    "c": 0.10733,
    "h": 265.3
  },
  "luminance": 0.03058
}

Semantic roles & 50–950 ramp

primary
#172D68
secondary
#9E843D
accent
#BA41E7
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#06050D
muted
#7A7A7E

Preview Lab

Preview with #172D68

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

Preview Lab → · Contrast checker → · Palette generator →

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