#171C4A#171C4A

#171C4A is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.3% C 0.085 H 274.0°. Best body text is #FFFFFF at 16.14:1 contrast (WCAG AA passes).

Color values

HEX#171C4A
RGBrgb(23, 28, 74)
HSLhsl(234, 53%, 19%)
HSVhsv(234, 69%, 29%)
CMYKcmyk(68.9%, 62.2%, 0%, 71%)
CIE-LABlab(12.65, 14.64, -29.41)
CIE-LCHlch(12.65, 32.85, 296.46°)
OKLaboklab(25.27% 0.0059 -0.0845)
OKLCHoklch(25.27% 0.085 274)
XYZxyz(2.0042, 1.5069, 6.6625)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C4A #4A4517
analogous
#17364A #171C4A #2C174A
triadic
#171C4A #4A171C #1C4A17
tetradic
#171C4A #4A1736 #4A4517 #174A2C
square
#171C4A #4A1736 #4A4517 #174A2C
split-complementary
#171C4A #4A2C17 #364A17
monochromatic
#070917 #080A1B #171C4A #262E79 #343FA7

Accessibility & contrast

On white

16.14
#171C4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#171C4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C4A
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C4A#FFFFFF#000000##FFFFFF
##171C4A1.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234C
Deuteranopia (green-blind)
#001F49
Tritanopia (blue-blind)
#00272F
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #171c4a;
/* rgb */ color: rgb(23, 28, 74);
/* oklch */ color: oklch(25.3% 0.085 274.0);
Tailwind
colors: {
  custom: {
    50: '#5b577d',
    500: '#171c4a',
    950: '#000000',
  },
}
SCSS
$custom: #171c4a;
$custom-light: #5b577d;
$custom-dark: #000000;
JSON
{
  "hex": "#171c4a",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 74
  },
  "hsl": {
    "h": 234.118,
    "s": 52.577,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25273,
    "c": 0.08468,
    "h": 274
  },
  "luminance": 0.01507
}

Semantic roles & 50–950 ramp

primary
#171C4A
secondary
#817A3C
accent
#CE4CDC
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040309
muted
#79787B

Preview Lab

Preview with #171C4A

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

Preview Lab → · Contrast checker → · Palette generator →

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