#172C71#172C71

#172C71 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.4% C 0.122 H 266.5°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#172C71
RGBrgb(23, 44, 113)
HSLhsl(226, 66%, 27%)
HSVhsv(226, 80%, 44%)
CMYKcmyk(79.6%, 61.1%, 0%, 55.7%)
CIE-LABlab(20.73, 18.91, -42.23)
CIE-LCHlch(20.73, 46.27, 294.12°)
OKLaboklab(32.37% -0.0074 -0.1219)
OKLCHoklch(32.37% 0.122 266.5)
XYZxyz(4.2336, 3.1753, 16.0094)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C71 #715C17
analogous
#175971 #172C71 #2F1771
triadic
#172C71 #71172C #2C7117
tetradic
#172C71 #711759 #715C17 #17712F
square
#172C71 #711759 #715C17 #17712F
split-complementary
#172C71 #712F17 #597117
monochromatic
#050A19 #0D183E #172C71 #2140A4 #2E55D4

Accessibility & contrast

On white

12.84
#172C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#172C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172C71
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C71#FFFFFF#000000##FFFFFF
##172C711.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#002E70
Tritanopia (blue-blind)
#003D4A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #172c71;
/* rgb */ color: rgb(23, 44, 113);
/* oklch */ color: oklch(32.4% 0.122 266.5);
Tailwind
colors: {
  custom: {
    50: '#64649a',
    500: '#172c71',
    950: '#000000',
  },
}
SCSS
$custom: #172c71;
$custom-light: #64649a;
$custom-dark: #000000;
JSON
{
  "hex": "#172c71",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 113
  },
  "hsl": {
    "h": 226,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.32373,
    "c": 0.12215,
    "h": 266.5
  },
  "luminance": 0.03176
}

Semantic roles & 50–950 ramp

primary
#172C71
secondary
#A78E3D
accent
#C13FE9
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #172C71

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

Preview Lab → · Contrast checker → · Palette generator →

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