#173371#173371

#173371 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 33.9% C 0.113 H 263.3°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#173371
RGBrgb(23, 51, 113)
HSLhsl(221, 66%, 27%)
HSVhsv(221, 80%, 44%)
CMYKcmyk(79.6%, 54.9%, 0%, 55.7%)
CIE-LABlab(22.80, 13.87, -38.87)
CIE-LCHlch(22.80, 41.27, 289.64°)
OKLaboklab(33.93% -0.0131 -0.1119)
OKLCHoklch(33.93% 0.113 263.3)
XYZxyz(4.5167, 3.7416, 16.1037)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173371 #715517
analogous
#176071 #173371 #281771
triadic
#173371 #711733 #337117
tetradic
#173371 #711760 #715517 #177128
square
#173371 #711760 #715517 #177128
split-complementary
#173371 #712817 #607117
monochromatic
#050B19 #0D1C3E #173371 #214AA4 #2E62D4

Accessibility & contrast

On white

12.01
#173371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#173371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173371
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173371#FFFFFF#000000##FFFFFF
##1733711.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083B73
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#00424C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #173371;
/* rgb */ color: rgb(23, 51, 113);
/* oklch */ color: oklch(33.9% 0.113 263.3);
Tailwind
colors: {
  custom: {
    50: '#636a9a',
    500: '#173371',
    950: '#000000',
  },
}
SCSS
$custom: #173371;
$custom-light: #636a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#173371",
  "rgb": {
    "r": 23,
    "g": 51,
    "b": 113
  },
  "hsl": {
    "h": 221.333,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.33931,
    "c": 0.11269,
    "h": 263.3
  },
  "luminance": 0.03742
}

Semantic roles & 50–950 ramp

primary
#173371
secondary
#A7863D
accent
#B43FE9
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #173371

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

Preview Lab → · Contrast checker → · Palette generator →

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