#171C6A#171C6A

#171C6A is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.5% C 0.133 H 271.6°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#171C6A
RGBrgb(23, 28, 106)
HSLhsl(236, 64%, 25%)
HSVhsv(236, 78%, 42%)
CMYKcmyk(78.3%, 73.6%, 0%, 58.4%)
CIE-LABlab(15.76, 27.34, -45.82)
CIE-LCHlch(15.76, 53.36, 300.82°)
OKLaboklab(28.51% 0.0038 -0.1326)
OKLCHoklch(28.51% 0.133 271.6)
XYZxyz(3.3692, 2.0529, 13.8516)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C6A #6A6517
analogous
#17456A #171C6A #3C176A
triadic
#171C6A #6A171C #1C6A17
tetradic
#171C6A #6A1745 #6A6517 #176A3C
square
#171C6A #6A1745 #6A6517 #176A3C
split-complementary
#171C6A #6A3C17 #456A17
monochromatic
#050719 #0C0F38 #171C6A #22299C #2D37CF

Accessibility & contrast

On white

14.89
#171C6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#171C6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C6A
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C6A#FFFFFF#000000##FFFFFF
##171C6A1.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002369
Tritanopia (blue-blind)
#003240
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #171c6a;
/* rgb */ color: rgb(23, 28, 106);
/* oklch */ color: oklch(28.5% 0.133 271.6);
Tailwind
colors: {
  custom: {
    50: '#635896',
    500: '#171c6a',
    950: '#000000',
  },
}
SCSS
$custom: #171c6a;
$custom-light: #635896;
$custom-dark: #000000;
JSON
{
  "hex": "#171c6a",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 106
  },
  "hsl": {
    "h": 236.386,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28511,
    "c": 0.13264,
    "h": 271.6
  },
  "luminance": 0.02053
}

Semantic roles & 50–950 ramp

primary
#171C6A
secondary
#A09A3D
accent
#DD40E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #171C6A

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

Preview Lab → · Contrast checker → · Palette generator →

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