#171B6A#171B6A

#171B6A is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.3% C 0.134 H 271.9°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).

Color values

HEX#171B6A
RGBrgb(23, 27, 106)
HSLhsl(237, 64%, 25%)
HSVhsv(237, 78%, 42%)
CMYKcmyk(78.3%, 74.5%, 0%, 58.4%)
CIE-LABlab(15.52, 28.00, -46.22)
CIE-LCHlch(15.52, 54.05, 301.21°)
OKLaboklab(28.34% 0.0044 -0.1338)
OKLCHoklch(28.34% 0.134 271.9)
XYZxyz(3.3459, 2.0063, 13.8438)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B6A #6A6617
analogous
#17456A #171B6A #3C176A
triadic
#171B6A #6A171B #1B6A17
tetradic
#171B6A #6A1745 #6A6617 #176A3C
square
#171B6A #6A1745 #6A6617 #176A3C
split-complementary
#171B6A #6A3C17 #456A17
monochromatic
#050619 #0C0E38 #171B6A #22289C #2D35CF

Accessibility & contrast

On white

14.99
#171B6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#171B6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B6A
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B6A#FFFFFF#000000##FFFFFF
##171B6A1.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171b6a;
/* rgb */ color: rgb(23, 27, 106);
/* oklch */ color: oklch(28.3% 0.134 271.9);
Tailwind
colors: {
  custom: {
    50: '#635896',
    500: '#171b6a',
    950: '#000000',
  },
}
SCSS
$custom: #171b6a;
$custom-light: #635896;
$custom-dark: #000000;
JSON
{
  "hex": "#171b6a",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 106
  },
  "hsl": {
    "h": 237.108,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28337,
    "c": 0.13383,
    "h": 271.9
  },
  "luminance": 0.02007
}

Semantic roles & 50–950 ramp

primary
#171B6A
secondary
#A09B3D
accent
#DF40E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #171B6A

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

Preview Lab → · Contrast checker → · Palette generator →

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