#172F71#172F71

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

Color values

HEX#172F71
RGBrgb(23, 47, 113)
HSLhsl(224, 66%, 27%)
HSVhsv(224, 80%, 44%)
CMYKcmyk(79.6%, 58.4%, 0%, 55.7%)
CIE-LABlab(21.61, 16.75, -40.81)
CIE-LCHlch(21.61, 44.11, 292.31°)
OKLaboklab(33.03% -0.0098 -0.1177)
OKLCHoklch(33.03% 0.118 265.3)
XYZxyz(4.3494, 3.4070, 16.0480)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F71 #715917
analogous
#175C71 #172F71 #2C1771
triadic
#172F71 #71172F #2F7117
tetradic
#172F71 #71175C #715917 #17712C
square
#172F71 #71175C #715917 #17712C
split-complementary
#172F71 #712C17 #5C7117
monochromatic
#050B19 #0D1A3E #172F71 #2144A4 #2E5AD4

Accessibility & contrast

On white

12.49
#172F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#172F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F71
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F71#FFFFFF#000000##FFFFFF
##172F711.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003873
Deuteranopia (green-blind)
#003070
Tritanopia (blue-blind)
#003F4B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #172f71;
/* rgb */ color: rgb(23, 47, 113);
/* oklch */ color: oklch(33.0% 0.118 265.3);
Tailwind
colors: {
  custom: {
    50: '#63679a',
    500: '#172f71',
    950: '#000000',
  },
}
SCSS
$custom: #172f71;
$custom-light: #63679a;
$custom-dark: #000000;
JSON
{
  "hex": "#172f71",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 224,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.33028,
    "c": 0.11811,
    "h": 265.3
  },
  "luminance": 0.03407
}

Semantic roles & 50–950 ramp

primary
#172F71
secondary
#A78B3D
accent
#BC3FE9
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #172F71

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

Preview Lab → · Contrast checker → · Palette generator →

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