#173171#173171

#173171 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.5% C 0.115 H 264.3°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#173171
RGBrgb(23, 49, 113)
HSLhsl(223, 66%, 27%)
HSVhsv(223, 80%, 44%)
CMYKcmyk(79.6%, 56.6%, 0%, 55.7%)
CIE-LABlab(22.20, 15.31, -39.85)
CIE-LCHlch(22.20, 42.69, 291.02°)
OKLaboklab(33.48% -0.0114 -0.1148)
OKLCHoklch(33.48% 0.115 264.3)
XYZxyz(4.4312, 3.5705, 16.0752)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173171 #715717
analogous
#175E71 #173171 #2A1771
triadic
#173171 #711731 #317117
tetradic
#173171 #71175E #715717 #17712A
square
#173171 #71175E #715717 #17712A
split-complementary
#173171 #712A17 #5E7117
monochromatic
#050B19 #0D1B3E #173171 #2147A4 #2E5ED4

Accessibility & contrast

On white

12.25
#173171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#173171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173171
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173171#FFFFFF#000000##FFFFFF
##1731711.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003973
Deuteranopia (green-blind)
#003170
Tritanopia (blue-blind)
#00414C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #173171;
/* rgb */ color: rgb(23, 49, 113);
/* oklch */ color: oklch(33.5% 0.115 264.3);
Tailwind
colors: {
  custom: {
    50: '#63689a',
    500: '#173171',
    950: '#000000',
  },
}
SCSS
$custom: #173171;
$custom-light: #63689a;
$custom-dark: #000000;
JSON
{
  "hex": "#173171",
  "rgb": {
    "r": 23,
    "g": 49,
    "b": 113
  },
  "hsl": {
    "h": 222.667,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.33476,
    "c": 0.11539,
    "h": 264.3
  },
  "luminance": 0.03571
}

Semantic roles & 50–950 ramp

primary
#173171
secondary
#A7883D
accent
#B83FE9
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #173171

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

Preview Lab → · Contrast checker → · Palette generator →

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