#172F66#172F66

#172F66 is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.1% C 0.102 H 263.9°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#172F66
RGBrgb(23, 47, 102)
HSLhsl(222, 63%, 25%)
HSVhsv(222, 77%, 40%)
CMYKcmyk(77.5%, 53.9%, 0%, 60%)
CIE-LABlab(20.73, 12.17, -35.11)
CIE-LCHlch(20.73, 37.16, 289.11°)
OKLaboklab(32.09% -0.0109 -0.1009)
OKLCHoklch(32.09% 0.102 263.9)
XYZxyz(3.7673, 3.1741, 12.9819)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F66 #664E17
analogous
#175766 #172F66 #271766
triadic
#172F66 #66172F #2F6617
tetradic
#172F66 #661757 #664E17 #176627
square
#172F66 #661757 #664E17 #176627
split-complementary
#172F66 #662717 #576617
monochromatic
#060C19 #0C1834 #172F66 #224698 #2E5DCA

Accessibility & contrast

On white

12.85
#172F66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#172F66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F66
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F66#FFFFFF#000000##FFFFFF
##172F661.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3668
Deuteranopia (green-blind)
#002E65
Tritanopia (blue-blind)
#003C45
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #172f66;
/* rgb */ color: rgb(23, 47, 102);
/* oklch */ color: oklch(32.1% 0.102 263.9);
Tailwind
colors: {
  custom: {
    50: '#606792',
    500: '#172f66',
    950: '#000000',
  },
}
SCSS
$custom: #172f66;
$custom-light: #606792;
$custom-dark: #000000;
JSON
{
  "hex": "#172f66",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 102
  },
  "hsl": {
    "h": 221.772,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.32086,
    "c": 0.10152,
    "h": 263.9
  },
  "luminance": 0.03174
}

Semantic roles & 50–950 ramp

primary
#172F66
secondary
#9C7F3C
accent
#B442E6
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#05060D
muted
#7A7A7E

Preview Lab

Preview with #172F66

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

Preview Lab → · Contrast checker → · Palette generator →

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