#172C8D#172C8D

#172C8D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.1% C 0.161 H 267.2°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#172C8D
RGBrgb(23, 44, 141)
HSLhsl(229, 72%, 32%)
HSVhsv(229, 84%, 55%)
CMYKcmyk(83.7%, 68.8%, 0%, 44.7%)
CIE-LABlab(23.36, 30.10, -55.63)
CIE-LCHlch(23.36, 63.25, 298.42°)
OKLaboklab(35.12% -0.0079 -0.1611)
OKLCHoklch(35.12% 0.161 267.2)
XYZxyz(6.0601, 3.9059, 25.6287)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C8D #8D7817
analogous
#17678D #172C8D #3D178D
triadic
#172C8D #8D172C #2C8D17
tetradic
#172C8D #8D1767 #8D7817 #178D3D
square
#172C8D #8D1767 #8D7817 #178D3D
split-complementary
#172C8D #8D3D17 #678D17
monochromatic
#060B24 #0E1C58 #172C8D #203CC2 #3F5BE0

Accessibility & contrast

On white

11.79
#172C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#172C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172C8D
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C8D#FFFFFF#000000##FFFFFF
##172C8D1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #172c8d;
/* rgb */ color: rgb(23, 44, 141);
/* oklch */ color: oklch(35.1% 0.161 267.2);
Tailwind
colors: {
  custom: {
    50: '#6b65af',
    500: '#172c8d',
    950: '#000000',
  },
}
SCSS
$custom: #172c8d;
$custom-light: #6b65af;
$custom-dark: #000000;
JSON
{
  "hex": "#172c8d",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 141
  },
  "hsl": {
    "h": 229.322,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3512,
    "c": 0.16135,
    "h": 267.2
  },
  "luminance": 0.03907
}

Semantic roles & 50–950 ramp

primary
#172C8D
secondary
#C0A940
accent
#CE39EF
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #172C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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