#173172#173172

#173172 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.6% C 0.117 H 264.4°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#173172
RGBrgb(23, 49, 114)
HSLhsl(223, 66%, 27%)
HSVhsv(223, 80%, 45%)
CMYKcmyk(79.8%, 57%, 0%, 55.3%)
CIE-LABlab(22.28, 15.73, -40.36)
CIE-LCHlch(22.28, 43.31, 291.29°)
OKLaboklab(33.56% -0.0113 -0.1163)
OKLCHoklch(33.56% 0.117 264.4)
XYZxyz(4.4878, 3.5932, 16.3734)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173172 #725817
analogous
#175F72 #173172 #2B1772
triadic
#173172 #721731 #317217
tetradic
#173172 #72175F #725817 #17722B
square
#173172 #72175F #725817 #17722B
split-complementary
#173172 #722B17 #5F7217
monochromatic
#050B19 #0D1B3F #173172 #2147A5 #2E5ED5

Accessibility & contrast

On white

12.22
#173172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#173172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173172
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173172#FFFFFF#000000##FFFFFF
##1731721.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A74
Deuteranopia (green-blind)
#003171
Tritanopia (blue-blind)
#00414C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #173172;
/* rgb */ color: rgb(23, 49, 114);
/* oklch */ color: oklch(33.6% 0.117 264.4);
Tailwind
colors: {
  custom: {
    50: '#63689b',
    500: '#173172',
    950: '#000000',
  },
}
SCSS
$custom: #173172;
$custom-light: #63689b;
$custom-dark: #000000;
JSON
{
  "hex": "#173172",
  "rgb": {
    "r": 23,
    "g": 49,
    "b": 114
  },
  "hsl": {
    "h": 222.857,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.33562,
    "c": 0.11689,
    "h": 264.4
  },
  "luminance": 0.03594
}

Semantic roles & 50–950 ramp

primary
#173172
secondary
#A8893D
accent
#B93EE9
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #173172

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

Preview Lab → · Contrast checker → · Palette generator →

#173172 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva