#172C72#172C72

#172C72 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.5% C 0.124 H 266.6°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#172C72
RGBrgb(23, 44, 114)
HSLhsl(226, 66%, 27%)
HSVhsv(226, 80%, 45%)
CMYKcmyk(79.8%, 61.4%, 0%, 55.3%)
CIE-LABlab(20.82, 19.32, -42.73)
CIE-LCHlch(20.82, 46.89, 294.33°)
OKLaboklab(32.47% -0.0074 -0.1234)
OKLCHoklch(32.47% 0.124 266.6)
XYZxyz(4.2902, 3.1979, 16.3075)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C72 #725D17
analogous
#175A72 #172C72 #301772
triadic
#172C72 #72172C #2C7217
tetradic
#172C72 #72175A #725D17 #177230
square
#172C72 #72175A #725D17 #177230
split-complementary
#172C72 #723017 #5A7217
monochromatic
#050A19 #0D183F #172C72 #2140A5 #2E55D5

Accessibility & contrast

On white

12.81
#172C72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172C72
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C72#FFFFFF#000000##FFFFFF
##172C721.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#002E71
Tritanopia (blue-blind)
#003E4A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #172c72;
/* rgb */ color: rgb(23, 44, 114);
/* oklch */ color: oklch(32.5% 0.124 266.6);
Tailwind
colors: {
  custom: {
    50: '#64649b',
    500: '#172c72',
    950: '#000000',
  },
}
SCSS
$custom: #172c72;
$custom-light: #64649b;
$custom-dark: #000000;
JSON
{
  "hex": "#172c72",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 114
  },
  "hsl": {
    "h": 226.154,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32466,
    "c": 0.12361,
    "h": 266.6
  },
  "luminance": 0.03198
}

Semantic roles & 50–950 ramp

primary
#172C72
secondary
#A88F3D
accent
#C23EE9
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #172C72

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

Preview Lab → · Contrast checker → · Palette generator →

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