#173971#173971

#173971 is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.3% C 0.105 H 259.9°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#173971
RGBrgb(23, 57, 113)
HSLhsl(217, 66%, 27%)
HSVhsv(217, 80%, 44%)
CMYKcmyk(79.6%, 49.6%, 0%, 55.7%)
CIE-LABlab(24.64, 9.59, -35.90)
CIE-LCHlch(24.64, 37.16, 284.96°)
OKLaboklab(35.34% -0.0184 -0.1031)
OKLCHoklch(35.34% 0.105 259.9)
XYZxyz(4.7960, 4.3001, 16.1968)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173971 #714F17
analogous
#176671 #173971 #221771
triadic
#173971 #711739 #397117
tetradic
#173971 #711766 #714F17 #177122
square
#173971 #711766 #714F17 #177122
split-complementary
#173971 #712217 #667117
monochromatic
#050D19 #0D1F3E #173971 #2153A4 #2E6DD4

Accessibility & contrast

On white

11.29
#173971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#173971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173971
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173971#FFFFFF#000000##FFFFFF
##1739711.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3F73
Deuteranopia (green-blind)
#023770
Tritanopia (blue-blind)
#00464F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #173971;
/* rgb */ color: rgb(23, 57, 113);
/* oklch */ color: oklch(35.3% 0.105 259.9);
Tailwind
colors: {
  custom: {
    50: '#636e9a',
    500: '#173971',
    950: '#000000',
  },
}
SCSS
$custom: #173971;
$custom-light: #636e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#173971",
  "rgb": {
    "r": 23,
    "g": 57,
    "b": 113
  },
  "hsl": {
    "h": 217.333,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.35339,
    "c": 0.10469,
    "h": 259.9
  },
  "luminance": 0.04301
}

Semantic roles & 50–950 ramp

primary
#173971
secondary
#A77F3D
accent
#A93FE9
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070E
muted
#7A7A7E

Preview Lab

Preview with #173971

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

Preview Lab → · Contrast checker → · Palette generator →

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