#172F60#172F60

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

Color values

HEX#172F60
RGBrgb(23, 47, 96)
HSLhsl(220, 61%, 23%)
HSVhsv(220, 76%, 38%)
CMYKcmyk(76%, 51%, 0%, 62.4%)
CIE-LABlab(20.28, 9.65, -31.91)
CIE-LCHlch(20.28, 33.34, 286.84°)
OKLaboklab(31.6% -0.0117 -0.0915)
OKLCHoklch(31.6% 0.092 262.7)
XYZxyz(3.4804, 3.0594, 11.4712)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F60 #604817
analogous
#175360 #172F60 #231760
triadic
#172F60 #60172F #2F6017
tetradic
#172F60 #601753 #604817 #176023
square
#172F60 #601753 #604817 #176023
split-complementary
#172F60 #602317 #536017
monochromatic
#060C19 #0B172F #172F60 #234791 #2F5FC3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##172F60#FFFFFF#000000##FFFFFF
##172F601.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)
#153462
Deuteranopia (green-blind)
#032E5F
Tritanopia (blue-blind)
#003B42
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #172f60;
/* rgb */ color: rgb(23, 47, 96);
/* oklch */ color: oklch(31.6% 0.092 262.7);
Tailwind
colors: {
  custom: {
    50: '#5f678d',
    500: '#172f60',
    950: '#000000',
  },
}
SCSS
$custom: #172f60;
$custom-light: #5f678d;
$custom-dark: #000000;
JSON
{
  "hex": "#172f60",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 96
  },
  "hsl": {
    "h": 220.274,
    "s": 61.345,
    "l": 23.333
  },
  "oklch": {
    "l": 0.31601,
    "c": 0.09226,
    "h": 262.7
  },
  "luminance": 0.0306
}

Semantic roles & 50–950 ramp

primary
#172F60
secondary
#97793C
accent
#AF43E4
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #172F60

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

Preview Lab → · Contrast checker → · Palette generator →

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