#172F8D#172F8D

#172F8D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.7% C 0.158 H 266.6°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#172F8D
RGBrgb(23, 47, 141)
HSLhsl(228, 72%, 32%)
HSVhsv(228, 84%, 55%)
CMYKcmyk(83.7%, 66.7%, 0%, 44.7%)
CIE-LABlab(24.12, 28.08, -54.37)
CIE-LCHlch(24.12, 61.20, 297.31°)
OKLaboklab(35.68% -0.0094 -0.1575)
OKLCHoklch(35.68% 0.158 266.6)
XYZxyz(6.1759, 4.1375, 25.6673)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F8D #8D7517
analogous
#176A8D #172F8D #3A178D
triadic
#172F8D #8D172F #2F8D17
tetradic
#172F8D #8D176A #8D7517 #178D3A
square
#172F8D #8D176A #8D7517 #178D3A
split-complementary
#172F8D #8D3A17 #6A8D17
monochromatic
#060C24 #0E1D58 #172F8D #2041C2 #3F5FE0

Accessibility & contrast

On white

11.49
#172F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#172F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F8D
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F8D#FFFFFF#000000##FFFFFF
##172F8D1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #172f8d;
/* rgb */ color: rgb(23, 47, 141);
/* oklch */ color: oklch(35.7% 0.158 266.6);
Tailwind
colors: {
  custom: {
    50: '#6b67af',
    500: '#172f8d',
    950: '#000000',
  },
}
SCSS
$custom: #172f8d;
$custom-light: #6b67af;
$custom-dark: #000000;
JSON
{
  "hex": "#172f8d",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 227.797,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35679,
    "c": 0.15775,
    "h": 266.6
  },
  "luminance": 0.04138
}

Semantic roles & 50–950 ramp

primary
#172F8D
secondary
#C0A640
accent
#CA39EF
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #172F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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