#171D6C#171D6C

#171D6C is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.9% C 0.134 H 271.3°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#171D6C
RGBrgb(23, 29, 108)
HSLhsl(236, 65%, 26%)
HSVhsv(236, 79%, 42%)
CMYKcmyk(78.7%, 73.1%, 0%, 57.6%)
CIE-LABlab(16.22, 27.44, -46.38)
CIE-LCHlch(16.22, 53.88, 300.61°)
OKLaboklab(28.91% 0.003 -0.1342)
OKLCHoklch(28.91% 0.134 271.3)
XYZxyz(3.4986, 2.1432, 14.4138)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D6C #6C6617
analogous
#17476C #171D6C #3B176C
triadic
#171D6C #6C171D #1D6C17
tetradic
#171D6C #6C1747 #6C6617 #176C3B
square
#171D6C #6C1747 #6C6617 #176C3B
split-complementary
#171D6C #6C3B17 #476C17
monochromatic
#050719 #0C0F3A #171D6C #222B9E #2C38D1

Accessibility & contrast

On white

14.70
#171D6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171D6C
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D6C#FFFFFF#000000##FFFFFF
##171D6C1.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171d6c;
/* rgb */ color: rgb(23, 29, 108);
/* oklch */ color: oklch(28.9% 0.134 271.3);
Tailwind
colors: {
  custom: {
    50: '#645997',
    500: '#171d6c',
    950: '#000000',
  },
}
SCSS
$custom: #171d6c;
$custom-light: #645997;
$custom-dark: #000000;
JSON
{
  "hex": "#171d6c",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 108
  },
  "hsl": {
    "h": 235.765,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28907,
    "c": 0.13423,
    "h": 271.3
  },
  "luminance": 0.02144
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #171D6C

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

Preview Lab → · Contrast checker → · Palette generator →

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