#172D8E#172D8E

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

Color values

HEX#172D8E
RGBrgb(23, 45, 142)
HSLhsl(229, 72%, 32%)
HSVhsv(229, 84%, 56%)
CMYKcmyk(83.8%, 68.3%, 0%, 44.3%)
CIE-LABlab(23.71, 29.82, -55.67)
CIE-LCHlch(23.71, 63.16, 298.17°)
OKLaboklab(35.41% -0.0085 -0.1613)
OKLCHoklch(35.41% 0.162 267)
XYZxyz(6.1725, 4.0112, 26.0349)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D8E #8E7817
analogous
#17688E #172D8E #3D178E
triadic
#172D8E #8E172D #2D8E17
tetradic
#172D8E #8E1768 #8E7817 #178E3D
square
#172D8E #8E1768 #8E7817 #178E3D
split-complementary
#172D8E #8E3D17 #688E17
monochromatic
#060C25 #0E1C59 #172D8E #203EC3 #3F5DE0

Accessibility & contrast

On white

11.65
#172D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#172D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D8E
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D8E#FFFFFF#000000##FFFFFF
##172D8E1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #172d8e;
/* rgb */ color: rgb(23, 45, 142);
/* oklch */ color: oklch(35.4% 0.162 267.0);
Tailwind
colors: {
  custom: {
    50: '#6c66b0',
    500: '#172d8e',
    950: '#000000',
  },
}
SCSS
$custom: #172d8e;
$custom-light: #6c66b0;
$custom-dark: #000000;
JSON
{
  "hex": "#172d8e",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 142
  },
  "hsl": {
    "h": 228.908,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35406,
    "c": 0.1615,
    "h": 267
  },
  "luminance": 0.04012
}

Semantic roles & 50–950 ramp

primary
#172D8E
secondary
#C0A940
accent
#CD39EF
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80

Preview Lab

Preview with #172D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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