#171D56#171D56

#171D56 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.6% C 0.102 H 272.7°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#171D56
RGBrgb(23, 29, 86)
HSLhsl(234, 58%, 21%)
HSVhsv(234, 73%, 34%)
CMYKcmyk(73.3%, 66.3%, 0%, 66.3%)
CIE-LABlab(14.02, 18.76, -35.39)
CIE-LCHlch(14.02, 40.06, 297.93°)
OKLaboklab(26.62% 0.0049 -0.102)
OKLCHoklch(26.62% 0.102 272.7)
XYZxyz(2.4719, 1.7325, 9.0064)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D56 #565017
analogous
#173D56 #171D56 #311756
triadic
#171D56 #56171D #1D5617
tetradic
#171D56 #56173D #565017 #175631
square
#171D56 #56173D #565017 #175631
split-complementary
#171D56 #563117 #3D5617
monochromatic
#060818 #0A0D26 #171D56 #242D86 #313EB7

Accessibility & contrast

On white

15.59
#171D56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#171D56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D56
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D56#FFFFFF#000000##FFFFFF
##171D561.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002758
Deuteranopia (green-blind)
#002155
Tritanopia (blue-blind)
#002B36
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #171d56;
/* rgb */ color: rgb(23, 29, 86);
/* oklch */ color: oklch(26.6% 0.102 272.7);
Tailwind
colors: {
  custom: {
    50: '#5e5886',
    500: '#171d56',
    950: '#000000',
  },
}
SCSS
$custom: #171d56;
$custom-light: #5e5886;
$custom-dark: #000000;
JSON
{
  "hex": "#171d56",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 86
  },
  "hsl": {
    "h": 234.286,
    "s": 57.798,
    "l": 21.373
  },
  "oklch": {
    "l": 0.26622,
    "c": 0.10216,
    "h": 272.7
  },
  "luminance": 0.01733
}

Semantic roles & 50–950 ramp

primary
#171D56
secondary
#8D853C
accent
#D247E1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #171D56

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

Preview Lab → · Contrast checker → · Palette generator →

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