#173871#173871

#173871 is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.1% C 0.106 H 260.5°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#173871
RGBrgb(23, 56, 113)
HSLhsl(218, 66%, 27%)
HSVhsv(218, 80%, 44%)
CMYKcmyk(79.6%, 50.4%, 0%, 55.7%)
CIE-LABlab(24.33, 10.30, -36.40)
CIE-LCHlch(24.33, 37.83, 285.80°)
OKLaboklab(35.1% -0.0174 -0.1046)
OKLCHoklch(35.1% 0.106 260.5)
XYZxyz(4.7471, 4.2022, 16.1805)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173871 #715017
analogous
#176571 #173871 #231771
triadic
#173871 #711738 #387117
tetradic
#173871 #711765 #715017 #177123
square
#173871 #711765 #715017 #177123
split-complementary
#173871 #712317 #657117
monochromatic
#050D19 #0D1F3E #173871 #2151A4 #2E6BD4

Accessibility & contrast

On white

11.41
#173871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#173871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173871
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173871#FFFFFF#000000##FFFFFF
##1738711.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183E73
Deuteranopia (green-blind)
#003670
Tritanopia (blue-blind)
#00464F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #173871;
/* rgb */ color: rgb(23, 56, 113);
/* oklch */ color: oklch(35.1% 0.106 260.5);
Tailwind
colors: {
  custom: {
    50: '#636e9a',
    500: '#173871',
    950: '#000000',
  },
}
SCSS
$custom: #173871;
$custom-light: #636e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#173871",
  "rgb": {
    "r": 23,
    "g": 56,
    "b": 113
  },
  "hsl": {
    "h": 218,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.351,
    "c": 0.10601,
    "h": 260.5
  },
  "luminance": 0.04203
}

Semantic roles & 50–950 ramp

primary
#173871
secondary
#A7803D
accent
#AB3FE9
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070E
muted
#7A7A7E

Preview Lab

Preview with #173871

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

Preview Lab → · Contrast checker → · Palette generator →

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