#172F72#172F72

#172F72 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.1% C 0.120 H 265.3°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#172F72
RGBrgb(23, 47, 114)
HSLhsl(224, 66%, 27%)
HSVhsv(224, 80%, 45%)
CMYKcmyk(79.8%, 58.8%, 0%, 55.3%)
CIE-LABlab(21.69, 17.17, -41.32)
CIE-LCHlch(21.69, 44.74, 292.56°)
OKLaboklab(33.12% -0.0097 -0.1192)
OKLCHoklch(33.12% 0.12 265.3)
XYZxyz(4.4061, 3.4296, 16.3461)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F72 #725A17
analogous
#175D72 #172F72 #2D1772
triadic
#172F72 #72172F #2F7217
tetradic
#172F72 #72175D #725A17 #17722D
square
#172F72 #72175D #725A17 #17722D
split-complementary
#172F72 #722D17 #5D7217
monochromatic
#050A19 #0D1A3F #172F72 #2144A5 #2E5AD5

Accessibility & contrast

On white

12.46
#172F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#172F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F72
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F72#FFFFFF#000000##FFFFFF
##172F721.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003874
Deuteranopia (green-blind)
#003071
Tritanopia (blue-blind)
#00404B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #172f72;
/* rgb */ color: rgb(23, 47, 114);
/* oklch */ color: oklch(33.1% 0.120 265.3);
Tailwind
colors: {
  custom: {
    50: '#64679b',
    500: '#172f72',
    950: '#000000',
  },
}
SCSS
$custom: #172f72;
$custom-light: #64679b;
$custom-dark: #000000;
JSON
{
  "hex": "#172f72",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 114
  },
  "hsl": {
    "h": 224.176,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.33117,
    "c": 0.11958,
    "h": 265.3
  },
  "luminance": 0.0343
}

Semantic roles & 50–950 ramp

primary
#172F72
secondary
#A88C3D
accent
#BC3EE9
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #172F72

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

Preview Lab → · Contrast checker → · Palette generator →

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