#172D66#172D66

#172D66 is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.6% C 0.104 H 265.0°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#172D66
RGBrgb(23, 45, 102)
HSLhsl(223, 63%, 25%)
HSVhsv(223, 77%, 40%)
CMYKcmyk(77.5%, 55.9%, 0%, 60%)
CIE-LABlab(20.11, 13.62, -36.10)
CIE-LCHlch(20.11, 38.59, 290.67°)
OKLaboklab(31.62% -0.009 -0.1039)
OKLCHoklch(31.62% 0.104 265)
XYZxyz(3.6892, 3.0178, 12.9559)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D66 #665017
analogous
#175566 #172D66 #291766
triadic
#172D66 #66172D #2D6617
tetradic
#172D66 #661755 #665017 #176629
square
#172D66 #661755 #665017 #176629
split-complementary
#172D66 #662917 #556617
monochromatic
#060B19 #0C1734 #172D66 #224398 #2E59CA

Accessibility & contrast

On white

13.10
#172D66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#172D66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D66
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D66#FFFFFF#000000##FFFFFF
##172D661.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063468
Deuteranopia (green-blind)
#002D65
Tritanopia (blue-blind)
#003B44
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #172d66;
/* rgb */ color: rgb(23, 45, 102);
/* oklch */ color: oklch(31.6% 0.104 265.0);
Tailwind
colors: {
  custom: {
    50: '#606592',
    500: '#172d66',
    950: '#000000',
  },
}
SCSS
$custom: #172d66;
$custom-light: #606592;
$custom-dark: #000000;
JSON
{
  "hex": "#172d66",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 102
  },
  "hsl": {
    "h": 223.291,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.31621,
    "c": 0.10429,
    "h": 265
  },
  "luminance": 0.03018
}

Semantic roles & 50–950 ramp

primary
#172D66
secondary
#9C823C
accent
#B842E6
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#05050D
muted
#7A7A7E

Preview Lab

Preview with #172D66

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

Preview Lab → · Contrast checker → · Palette generator →

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