#171C6D#171C6D

#171C6D is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.8% C 0.137 H 271.4°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#171C6D
RGBrgb(23, 28, 109)
HSLhsl(237, 65%, 26%)
HSVhsv(237, 79%, 43%)
CMYKcmyk(78.9%, 74.3%, 0%, 57.3%)
CIE-LABlab(16.09, 28.48, -47.25)
CIE-LCHlch(16.09, 55.17, 301.08°)
OKLaboklab(28.84% 0.0034 -0.1367)
OKLCHoklch(28.84% 0.137 271.4)
XYZxyz(3.5280, 2.1164, 14.6876)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C6D #6D6817
analogous
#17476D #171C6D #3D176D
triadic
#171C6D #6D171C #1C6D17
tetradic
#171C6D #6D1747 #6D6817 #176D3D
square
#171C6D #6D1747 #6D6817 #176D3D
split-complementary
#171C6D #6D3D17 #476D17
monochromatic
#050619 #0C0F3A #171C6D #2229A0 #2C36D2

Accessibility & contrast

On white

14.75
#171C6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#171C6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C6D
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C6D#FFFFFF#000000##FFFFFF
##171C6D1.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171c6d;
/* rgb */ color: rgb(23, 28, 109);
/* oklch */ color: oklch(28.8% 0.137 271.4);
Tailwind
colors: {
  custom: {
    50: '#645898',
    500: '#171c6d',
    950: '#000000',
  },
}
SCSS
$custom: #171c6d;
$custom-light: #645898;
$custom-dark: #000000;
JSON
{
  "hex": "#171c6d",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 109
  },
  "hsl": {
    "h": 236.512,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28842,
    "c": 0.13679,
    "h": 271.4
  },
  "luminance": 0.02117
}

Semantic roles & 50–950 ramp

primary
#171C6D
secondary
#A39D3D
accent
#DE40E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #171C6D

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

Preview Lab → · Contrast checker → · Palette generator →

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