#172D8F#172D8F

#172D8F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.163 H 267.0°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#172D8F
RGBrgb(23, 45, 143)
HSLhsl(229, 72%, 33%)
HSVhsv(229, 84%, 56%)
CMYKcmyk(83.9%, 68.5%, 0%, 43.9%)
CIE-LABlab(23.81, 30.21, -56.13)
CIE-LCHlch(23.81, 63.74, 298.29°)
OKLaboklab(35.51% -0.0085 -0.1626)
OKLCHoklch(35.51% 0.163 267)
XYZxyz(6.2479, 4.0414, 26.4320)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D8F #8F7917
analogous
#17698F #172D8F #3D178F
triadic
#172D8F #8F172D #2D8F17
tetradic
#172D8F #8F1769 #8F7917 #178F3D
square
#172D8F #8F1769 #8F7917 #178F3D
split-complementary
#172D8F #8F3D17 #698F17
monochromatic
#060C26 #0F1C5A #172D8F #1F3EC4 #405DE0

Accessibility & contrast

On white

11.61
#172D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#172D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D8F
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D8F#FFFFFF#000000##FFFFFF
##172D8F1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #172d8f;
/* rgb */ color: rgb(23, 45, 143);
/* oklch */ color: oklch(35.5% 0.163 267.0);
Tailwind
colors: {
  custom: {
    50: '#6c66b1',
    500: '#172d8f',
    950: '#000000',
  },
}
SCSS
$custom: #172d8f;
$custom-light: #6c66b1;
$custom-dark: #000000;
JSON
{
  "hex": "#172d8f",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 143
  },
  "hsl": {
    "h": 229,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35509,
    "c": 0.16283,
    "h": 267
  },
  "luminance": 0.04042
}

Semantic roles & 50–950 ramp

primary
#172D8F
secondary
#C1A941
accent
#CE39EF
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80

Preview Lab

Preview with #172D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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