#172B72#172B72

#172B72 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.3% C 0.125 H 266.9°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#172B72
RGBrgb(23, 43, 114)
HSLhsl(227, 66%, 27%)
HSVhsv(227, 80%, 45%)
CMYKcmyk(79.8%, 62.3%, 0%, 55.3%)
CIE-LABlab(20.54, 20.04, -43.19)
CIE-LCHlch(20.54, 47.61, 294.89°)
OKLaboklab(32.25% -0.0067 -0.1248)
OKLCHoklch(32.25% 0.125 266.9)
XYZxyz(4.2534, 3.1243, 16.2952)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B72 #725E17
analogous
#175972 #172B72 #311772
triadic
#172B72 #72172B #2B7217
tetradic
#172B72 #721759 #725E17 #177231
square
#172B72 #721759 #725E17 #177231
split-complementary
#172B72 #723117 #597217
monochromatic
#050A19 #0D183F #172B72 #213EA5 #2E53D5

Accessibility & contrast

On white

12.92
#172B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#172B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B72
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B72#FFFFFF#000000##FFFFFF
##172B721.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#002D71
Tritanopia (blue-blind)
#003D4A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #172b72;
/* rgb */ color: rgb(23, 43, 114);
/* oklch */ color: oklch(32.3% 0.125 266.9);
Tailwind
colors: {
  custom: {
    50: '#64649b',
    500: '#172b72',
    950: '#000000',
  },
}
SCSS
$custom: #172b72;
$custom-light: #64649b;
$custom-dark: #000000;
JSON
{
  "hex": "#172b72",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 114
  },
  "hsl": {
    "h": 226.813,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32253,
    "c": 0.12495,
    "h": 266.9
  },
  "luminance": 0.03125
}

Semantic roles & 50–950 ramp

primary
#172B72
secondary
#A8903D
accent
#C43EE9
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172B72

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

Preview Lab → · Contrast checker → · Palette generator →

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