#171C4D#171C4D

#171C4D is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.5% C 0.090 H 273.8°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#171C4D
RGBrgb(23, 28, 77)
HSLhsl(234, 54%, 20%)
HSVhsv(234, 70%, 30%)
CMYKcmyk(70.1%, 63.6%, 0%, 69.8%)
CIE-LABlab(12.91, 15.85, -31.06)
CIE-LCHlch(12.91, 34.87, 297.04°)
OKLaboklab(25.55% 0.006 -0.0893)
OKLCHoklch(25.55% 0.09 273.8)
XYZxyz(2.1077, 1.5483, 7.2075)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C4D #4D4817
analogous
#17374D #171C4D #2D174D
triadic
#171C4D #4D171C #1C4D17
tetradic
#171C4D #4D1737 #4D4817 #174D2D
square
#171C4D #4D1737 #4D4817 #174D2D
split-complementary
#171C4D #4D2D17 #374D17
monochromatic
#070918 #090B1E #171C4D #252D7C #333EAB

Accessibility & contrast

On white

16.04
#171C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#171C4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C4D
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C4D#FFFFFF#000000##FFFFFF
##171C4D1.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244F
Deuteranopia (green-blind)
#001F4C
Tritanopia (blue-blind)
#002831
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #171c4d;
/* rgb */ color: rgb(23, 28, 77);
/* oklch */ color: oklch(25.5% 0.090 273.8);
Tailwind
colors: {
  custom: {
    50: '#5b587f',
    500: '#171c4d',
    950: '#000000',
  },
}
SCSS
$custom: #171c4d;
$custom-light: #5b587f;
$custom-dark: #000000;
JSON
{
  "hex": "#171c4d",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 77
  },
  "hsl": {
    "h": 234.444,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.25549,
    "c": 0.08952,
    "h": 273.8
  },
  "luminance": 0.01548
}

Semantic roles & 50–950 ramp

primary
#171C4D
secondary
#847D3C
accent
#D04ADD
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #171C4D

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

Preview Lab → · Contrast checker → · Palette generator →

#171C4D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva