#172F68#172F68

#172F68 is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.3% C 0.105 H 264.2°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#172F68
RGBrgb(23, 47, 104)
HSLhsl(222, 64%, 25%)
HSVhsv(222, 78%, 41%)
CMYKcmyk(77.9%, 54.8%, 0%, 59.2%)
CIE-LABlab(20.88, 13.00, -36.17)
CIE-LCHlch(20.88, 38.43, 289.78°)
OKLaboklab(32.25% -0.0106 -0.104)
OKLCHoklch(32.25% 0.105 264.2)
XYZxyz(3.8677, 3.2142, 13.5106)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F68 #685017
analogous
#175868 #172F68 #271768
triadic
#172F68 #68172F #2F6817
tetradic
#172F68 #681758 #685017 #176827
square
#172F68 #681758 #685017 #176827
split-complementary
#172F68 #682717 #586817
monochromatic
#060B19 #0C1836 #172F68 #22469A #2D5CCC

Accessibility & contrast

On white

12.78
#172F68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#172F68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F68
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F68#FFFFFF#000000##FFFFFF
##172F681.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09366A
Deuteranopia (green-blind)
#002F67
Tritanopia (blue-blind)
#003D46
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #172f68;
/* rgb */ color: rgb(23, 47, 104);
/* oklch */ color: oklch(32.3% 0.105 264.2);
Tailwind
colors: {
  custom: {
    50: '#616794',
    500: '#172f68',
    950: '#000000',
  },
}
SCSS
$custom: #172f68;
$custom-light: #616794;
$custom-dark: #000000;
JSON
{
  "hex": "#172f68",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 104
  },
  "hsl": {
    "h": 222.222,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.32253,
    "c": 0.10458,
    "h": 264.2
  },
  "luminance": 0.03215
}

Semantic roles & 50–950 ramp

primary
#172F68
secondary
#9E813D
accent
#B641E7
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#05060D
muted
#7A7A7E

Preview Lab

Preview with #172F68

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

Preview Lab → · Contrast checker → · Palette generator →

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