#172F88#172F88

#172F88 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.2% C 0.151 H 266.5°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#172F88
RGBrgb(23, 47, 136)
HSLhsl(227, 71%, 31%)
HSVhsv(227, 83%, 53%)
CMYKcmyk(83.1%, 65.4%, 0%, 46.7%)
CIE-LABlab(23.65, 26.10, -52.04)
CIE-LCHlch(23.65, 58.22, 296.64°)
OKLaboklab(35.18% -0.0093 -0.1506)
OKLCHoklch(35.18% 0.151 266.5)
XYZxyz(5.8122, 3.9921, 23.7520)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F88 #887017
analogous
#176788 #172F88 #371788
triadic
#172F88 #88172F #2F8817
tetradic
#172F88 #881767 #887017 #178837
square
#172F88 #881767 #887017 #178837
split-complementary
#172F88 #883717 #678817
monochromatic
#050B1F #0E1D54 #172F88 #2041BC #3B5EDE

Accessibility & contrast

On white

11.68
#172F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172F88
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F88#FFFFFF#000000##FFFFFF
##172F881.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8B
Deuteranopia (green-blind)
#003386
Tritanopia (blue-blind)
#004757
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #172f88;
/* rgb */ color: rgb(23, 47, 136);
/* oklch */ color: oklch(35.2% 0.151 266.5);
Tailwind
colors: {
  custom: {
    50: '#6a67ac',
    500: '#172f88',
    950: '#000000',
  },
}
SCSS
$custom: #172f88;
$custom-light: #6a67ac;
$custom-dark: #000000;
JSON
{
  "hex": "#172f88",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 136
  },
  "hsl": {
    "h": 227.257,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35183,
    "c": 0.15094,
    "h": 266.5
  },
  "luminance": 0.03993
}

Semantic roles & 50–950 ramp

primary
#172F88
secondary
#BCA13F
accent
#C83AEE
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #172F88

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

Preview Lab → · Contrast checker → · Palette generator →

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