#172F8F#172F8F

#172F8F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.160 H 266.6°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#172F8F
RGBrgb(23, 47, 143)
HSLhsl(228, 72%, 33%)
HSVhsv(228, 84%, 56%)
CMYKcmyk(83.9%, 67.1%, 0%, 43.9%)
CIE-LABlab(24.31, 28.86, -55.30)
CIE-LCHlch(24.31, 62.38, 297.56°)
OKLaboklab(35.88% -0.0095 -0.1602)
OKLCHoklch(35.88% 0.16 266.6)
XYZxyz(6.3261, 4.1976, 26.4581)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F8F #8F7717
analogous
#176B8F #172F8F #3B178F
triadic
#172F8F #8F172F #2F8F17
tetradic
#172F8F #8F176B #8F7717 #178F3B
square
#172F8F #8F176B #8F7717 #178F3B
split-complementary
#172F8F #8F3B17 #6B8F17
monochromatic
#060C26 #0F1E5A #172F8F #1F40C4 #4060E0

Accessibility & contrast

On white

11.42
#172F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#172F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F8F
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F8F#FFFFFF#000000##FFFFFF
##172F8F1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #172f8f;
/* rgb */ color: rgb(23, 47, 143);
/* oklch */ color: oklch(35.9% 0.160 266.6);
Tailwind
colors: {
  custom: {
    50: '#6c67b1',
    500: '#172f8f',
    950: '#000000',
  },
}
SCSS
$custom: #172f8f;
$custom-light: #6c67b1;
$custom-dark: #000000;
JSON
{
  "hex": "#172f8f",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 228,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3588,
    "c": 0.16045,
    "h": 266.6
  },
  "luminance": 0.04198
}

Semantic roles & 50–950 ramp

primary
#172F8F
secondary
#C1A741
accent
#CB39EF
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #172F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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