#172B71#172B71

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

Color values

HEX#172B71
RGBrgb(23, 43, 113)
HSLhsl(227, 66%, 27%)
HSVhsv(227, 80%, 44%)
CMYKcmyk(79.6%, 61.9%, 0%, 55.7%)
CIE-LABlab(20.45, 19.63, -42.69)
CIE-LCHlch(20.45, 46.99, 294.69°)
OKLaboklab(32.16% -0.0067 -0.1233)
OKLCHoklch(32.16% 0.123 266.9)
XYZxyz(4.1968, 3.1017, 15.9971)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B71 #715D17
analogous
#175871 #172B71 #301771
triadic
#172B71 #71172B #2B7117
tetradic
#172B71 #711758 #715D17 #177130
square
#172B71 #711758 #715D17 #177130
split-complementary
#172B71 #713017 #587117
monochromatic
#050A19 #0D183E #172B71 #213EA4 #2E53D4

Accessibility & contrast

On white

12.96
#172B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#172B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B71
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B71#FFFFFF#000000##FFFFFF
##172B711.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#003D49
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #172b71;
/* rgb */ color: rgb(23, 43, 113);
/* oklch */ color: oklch(32.2% 0.123 266.9);
Tailwind
colors: {
  custom: {
    50: '#64649a',
    500: '#172b71',
    950: '#000000',
  },
}
SCSS
$custom: #172b71;
$custom-light: #64649a;
$custom-dark: #000000;
JSON
{
  "hex": "#172b71",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 113
  },
  "hsl": {
    "h": 226.667,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.3216,
    "c": 0.12349,
    "h": 266.9
  },
  "luminance": 0.03102
}

Semantic roles & 50–950 ramp

primary
#172B71
secondary
#A78F3D
accent
#C33FE9
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172B71

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

Preview Lab → · Contrast checker → · Palette generator →

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