#173271#173271

#173271 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 33.7% C 0.114 H 263.8°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#173271
RGBrgb(23, 50, 113)
HSLhsl(222, 66%, 27%)
HSVhsv(222, 80%, 44%)
CMYKcmyk(79.6%, 55.8%, 0%, 55.7%)
CIE-LABlab(22.50, 14.59, -39.36)
CIE-LCHlch(22.50, 41.98, 290.34°)
OKLaboklab(33.7% -0.0122 -0.1134)
OKLCHoklch(33.7% 0.114 263.8)
XYZxyz(4.4735, 3.6551, 16.0893)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173271 #715617
analogous
#175F71 #173271 #291771
triadic
#173271 #711732 #327117
tetradic
#173271 #71175F #715617 #177129
square
#173271 #71175F #715617 #177129
split-complementary
#173271 #712917 #5F7117
monochromatic
#050B19 #0D1C3E #173271 #2149A4 #2E60D4

Accessibility & contrast

On white

12.13
#173271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#173271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173271
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173271#FFFFFF#000000##FFFFFF
##1732711.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033A73
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#00414C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #173271;
/* rgb */ color: rgb(23, 50, 113);
/* oklch */ color: oklch(33.7% 0.114 263.8);
Tailwind
colors: {
  custom: {
    50: '#63699a',
    500: '#173271',
    950: '#000000',
  },
}
SCSS
$custom: #173271;
$custom-light: #63699a;
$custom-dark: #000000;
JSON
{
  "hex": "#173271",
  "rgb": {
    "r": 23,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 222,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.33702,
    "c": 0.11405,
    "h": 263.8
  },
  "luminance": 0.03656
}

Semantic roles & 50–950 ramp

primary
#173271
secondary
#A7873D
accent
#B63FE9
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #173271

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

Preview Lab → · Contrast checker → · Palette generator →

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