#172D86#172D86

#172D86 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.6% C 0.151 H 266.9°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#172D86
RGBrgb(23, 45, 134)
HSLhsl(228, 71%, 31%)
HSVhsv(228, 83%, 53%)
CMYKcmyk(82.8%, 66.4%, 0%, 47.5%)
CIE-LABlab(22.93, 26.69, -51.97)
CIE-LCHlch(22.93, 58.42, 297.18°)
OKLaboklab(34.6% -0.0081 -0.1504)
OKLCHoklch(34.6% 0.151 266.9)
XYZxyz(5.5933, 3.7795, 22.9844)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D86 #867017
analogous
#176486 #172D86 #381786
triadic
#172D86 #86172D #2D8617
tetradic
#172D86 #861764 #867017 #178638
square
#172D86 #861764 #867017 #178638
split-complementary
#172D86 #863817 #648617
monochromatic
#050A1E #0E1B52 #172D86 #203FBA #3A5ADD

Accessibility & contrast

On white

11.96
#172D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#172D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D86
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D86#FFFFFF#000000##FFFFFF
##172D861.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C89
Deuteranopia (green-blind)
#003284
Tritanopia (blue-blind)
#004555
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #172d86;
/* rgb */ color: rgb(23, 45, 134);
/* oklch */ color: oklch(34.6% 0.151 266.9);
Tailwind
colors: {
  custom: {
    50: '#6965aa',
    500: '#172d86',
    950: '#000000',
  },
}
SCSS
$custom: #172d86;
$custom-light: #6965aa;
$custom-dark: #000000;
JSON
{
  "hex": "#172d86",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 134
  },
  "hsl": {
    "h": 228.108,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34596,
    "c": 0.15067,
    "h": 266.9
  },
  "luminance": 0.0378
}

Semantic roles & 50–950 ramp

primary
#172D86
secondary
#BAA23F
accent
#CA3AED
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#070510
muted
#7A7A7F

Preview Lab

Preview with #172D86

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

Preview Lab → · Contrast checker → · Palette generator →

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