#172D71#172D71

#172D71 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.6% C 0.121 H 266.1°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#172D71
RGBrgb(23, 45, 113)
HSLhsl(225, 66%, 27%)
HSVhsv(225, 80%, 44%)
CMYKcmyk(79.6%, 60.2%, 0%, 55.7%)
CIE-LABlab(21.02, 18.19, -41.76)
CIE-LCHlch(21.02, 45.55, 293.54°)
OKLaboklab(32.59% -0.0082 -0.1205)
OKLCHoklch(32.59% 0.121 266.1)
XYZxyz(4.2713, 3.2507, 16.0219)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D71 #715B17
analogous
#175A71 #172D71 #2E1771
triadic
#172D71 #71172D #2D7117
tetradic
#172D71 #71175A #715B17 #17712E
square
#172D71 #71175A #715B17 #17712E
split-complementary
#172D71 #712E17 #5A7117
monochromatic
#050A19 #0D193E #172D71 #2141A4 #2E57D4

Accessibility & contrast

On white

12.73
#172D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#172D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D71
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D71#FFFFFF#000000##FFFFFF
##172D711.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#003E4A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #172d71;
/* rgb */ color: rgb(23, 45, 113);
/* oklch */ color: oklch(32.6% 0.121 266.1);
Tailwind
colors: {
  custom: {
    50: '#63659a',
    500: '#172d71',
    950: '#000000',
  },
}
SCSS
$custom: #172d71;
$custom-light: #63659a;
$custom-dark: #000000;
JSON
{
  "hex": "#172d71",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 113
  },
  "hsl": {
    "h": 225.333,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.32589,
    "c": 0.12081,
    "h": 266.1
  },
  "luminance": 0.03251
}

Semantic roles & 50–950 ramp

primary
#172D71
secondary
#A78D3D
accent
#BF3FE9
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #172D71

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

Preview Lab → · Contrast checker → · Palette generator →

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