#171C6F#171C6F

#171C6F is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.1% C 0.140 H 271.3°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#171C6F
RGBrgb(23, 28, 111)
HSLhsl(237, 66%, 26%)
HSVhsv(237, 79%, 44%)
CMYKcmyk(79.3%, 74.8%, 0%, 56.5%)
CIE-LABlab(16.31, 29.24, -48.19)
CIE-LCHlch(16.31, 56.37, 301.25°)
OKLaboklab(29.07% 0.0031 -0.1395)
OKLCHoklch(29.07% 0.14 271.3)
XYZxyz(3.6369, 2.1600, 15.2611)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C6F #6F6A17
analogous
#17486F #171C6F #3E176F
triadic
#171C6F #6F171C #1C6F17
tetradic
#171C6F #6F1748 #6F6A17 #176F3E
square
#171C6F #6F1748 #6F6A17 #176F3E
split-complementary
#171C6F #6F3E17 #486F17
monochromatic
#050619 #0C0F3C #171C6F #2229A2 #2D36D3

Accessibility & contrast

On white

14.66
#171C6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171C6F
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C6F#FFFFFF#000000##FFFFFF
##171C6F1.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D71
Deuteranopia (green-blind)
#00246D
Tritanopia (blue-blind)
#003343
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #171c6f;
/* rgb */ color: rgb(23, 28, 111);
/* oklch */ color: oklch(29.1% 0.140 271.3);
Tailwind
colors: {
  custom: {
    50: '#655999',
    500: '#171c6f',
    950: '#000000',
  },
}
SCSS
$custom: #171c6f;
$custom-light: #655999;
$custom-dark: #000000;
JSON
{
  "hex": "#171c6f",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 111
  },
  "hsl": {
    "h": 236.591,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29065,
    "c": 0.13952,
    "h": 271.3
  },
  "luminance": 0.0216
}

Semantic roles & 50–950 ramp

primary
#171C6F
secondary
#A59F3D
accent
#DF3FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #171C6F

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

Preview Lab → · Contrast checker → · Palette generator →

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