#171C49#171C49

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

Color values

HEX#171C49
RGBrgb(23, 28, 73)
HSLhsl(234, 52%, 19%)
HSVhsv(234, 68%, 29%)
CMYKcmyk(68.5%, 61.6%, 0%, 71.4%)
CIE-LABlab(12.57, 14.23, -28.86)
CIE-LCHlch(12.57, 32.18, 296.25°)
OKLaboklab(25.18% 0.0058 -0.0828)
OKLCHoklch(25.18% 0.083 274)
XYZxyz(1.9708, 1.4935, 6.4865)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C49 #494417
analogous
#173549 #171C49 #2B1749
triadic
#171C49 #49171C #1C4917
tetradic
#171C49 #491735 #494417 #17492B
square
#171C49 #491735 #494417 #17492B
split-complementary
#171C49 #492B17 #354917
monochromatic
#070917 #080A1A #171C49 #262E78 #3440A6

Accessibility & contrast

On white

16.17
#171C49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171C49
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C49#FFFFFF#000000##FFFFFF
##171C491.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171c49;
/* rgb */ color: rgb(23, 28, 73);
/* oklch */ color: oklch(25.2% 0.083 274.0);
Tailwind
colors: {
  custom: {
    50: '#5a577c',
    500: '#171c49',
    950: '#000000',
  },
}
SCSS
$custom: #171c49;
$custom-light: #5a577c;
$custom-dark: #000000;
JSON
{
  "hex": "#171c49",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 73
  },
  "hsl": {
    "h": 234,
    "s": 52.083,
    "l": 18.824
  },
  "oklch": {
    "l": 0.25182,
    "c": 0.08306,
    "h": 274
  },
  "luminance": 0.01494
}

Semantic roles & 50–950 ramp

primary
#171C49
secondary
#80793C
accent
#CD4CDC
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040309
muted
#79787B

Preview Lab

Preview with #171C49

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

Preview Lab → · Contrast checker → · Palette generator →

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