#171D6D#171D6D

#171D6D is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.0% C 0.136 H 271.2°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#171D6D
RGBrgb(23, 29, 109)
HSLhsl(236, 65%, 26%)
HSVhsv(236, 79%, 43%)
CMYKcmyk(78.9%, 73.4%, 0%, 57.3%)
CIE-LABlab(16.33, 27.82, -46.85)
CIE-LCHlch(16.33, 54.49, 300.70°)
OKLaboklab(29.02% 0.0028 -0.1356)
OKLCHoklch(29.02% 0.136 271.2)
XYZxyz(3.5521, 2.1646, 14.6956)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D6D #6D6717
analogous
#17486D #171D6D #3C176D
triadic
#171D6D #6D171D #1D6D17
tetradic
#171D6D #6D1748 #6D6717 #176D3C
square
#171D6D #6D1748 #6D6717 #176D3C
split-complementary
#171D6D #6D3C17 #486D17
monochromatic
#050719 #0C103A #171D6D #222AA0 #2C38D2

Accessibility & contrast

On white

14.65
#171D6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#171D6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D6D
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D6D#FFFFFF#000000##FFFFFF
##171D6D1.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6F
Deuteranopia (green-blind)
#00246C
Tritanopia (blue-blind)
#003342
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #171d6d;
/* rgb */ color: rgb(23, 29, 109);
/* oklch */ color: oklch(29.0% 0.136 271.2);
Tailwind
colors: {
  custom: {
    50: '#645998',
    500: '#171d6d',
    950: '#000000',
  },
}
SCSS
$custom: #171d6d;
$custom-light: #645998;
$custom-dark: #000000;
JSON
{
  "hex": "#171d6d",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 109
  },
  "hsl": {
    "h": 235.814,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29016,
    "c": 0.13562,
    "h": 271.2
  },
  "luminance": 0.02165
}

Semantic roles & 50–950 ramp

primary
#171D6D
secondary
#A39C3D
accent
#DC40E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #171D6D

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

Preview Lab → · Contrast checker → · Palette generator →

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