#171C41#171C41

#171C41 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.5% C 0.070 H 274.3°. Best body text is #FFFFFF at 16.42:1 contrast (WCAG AA passes).

Color values

HEX#171C41
RGBrgb(23, 28, 65)
HSLhsl(233, 48%, 17%)
HSVhsv(233, 65%, 25%)
CMYKcmyk(64.6%, 56.9%, 0%, 74.5%)
CIE-LABlab(11.92, 10.99, -24.32)
CIE-LCHlch(11.92, 26.69, 294.32°)
OKLaboklab(24.49% 0.0052 -0.0695)
OKLCHoklch(24.49% 0.07 274.3)
XYZxyz(1.7224, 1.3942, 5.1783)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C41 #413C17
analogous
#173141 #171C41 #271741
triadic
#171C41 #41171C #1C4117
tetradic
#171C41 #411731 #413C17 #174127
square
#171C41 #411731 #413C17 #174127
split-complementary
#171C41 #412717 #314117
monochromatic
#080A17 #080A17 #171C41 #272F6E #37439B

Accessibility & contrast

On white

16.42
#171C41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#171C41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C41
16.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C41#FFFFFF#000000##FFFFFF
##171C411.0016.421.2816.42
#FFFFFF16.421.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092142
Deuteranopia (green-blind)
#041E40
Tritanopia (blue-blind)
#01242B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #171c41;
/* rgb */ color: rgb(23, 28, 65);
/* oklch */ color: oklch(24.5% 0.070 274.3);
Tailwind
colors: {
  custom: {
    50: '#595776',
    500: '#171c41',
    950: '#000000',
  },
}
SCSS
$custom: #171c41;
$custom-light: #595776;
$custom-dark: #000000;
JSON
{
  "hex": "#171c41",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 65
  },
  "hsl": {
    "h": 232.857,
    "s": 47.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.24489,
    "c": 0.06971,
    "h": 274.3
  },
  "luminance": 0.01394
}

Semantic roles & 50–950 ramp

primary
#171C41
secondary
#78713C
accent
#C750D7
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040308
muted
#79787B

Preview Lab

Preview with #171C41

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

Preview Lab → · Contrast checker → · Palette generator →

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