#171F6A#171F6A

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

Color values

HEX#171F6A
RGBrgb(23, 31, 106)
HSLhsl(234, 64%, 25%)
HSVhsv(234, 78%, 42%)
CMYKcmyk(78.3%, 70.8%, 0%, 58.4%)
CIE-LABlab(16.52, 25.30, -44.59)
CIE-LCHlch(16.52, 51.27, 299.57°)
OKLaboklab(29.06% 0.002 -0.129)
OKLCHoklch(29.06% 0.129 270.9)
XYZxyz(3.4440, 2.2024, 13.8765)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F6A #6A6217
analogous
#17486A #171F6A #38176A
triadic
#171F6A #6A171F #1F6A17
tetradic
#171F6A #6A1748 #6A6217 #176A38
square
#171F6A #6A1748 #6A6217 #176A38
split-complementary
#171F6A #6A3817 #486A17
monochromatic
#050719 #0C1038 #171F6A #222E9C #2D3CCF

Accessibility & contrast

On white

14.58
#171F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#171F6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F6A
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F6A#FFFFFF#000000##FFFFFF
##171F6A1.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6C
Deuteranopia (green-blind)
#002569
Tritanopia (blue-blind)
#003341
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #171f6a;
/* rgb */ color: rgb(23, 31, 106);
/* oklch */ color: oklch(29.1% 0.129 270.9);
Tailwind
colors: {
  custom: {
    50: '#635a95',
    500: '#171f6a',
    950: '#000000',
  },
}
SCSS
$custom: #171f6a;
$custom-light: #635a95;
$custom-dark: #000000;
JSON
{
  "hex": "#171f6a",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 106
  },
  "hsl": {
    "h": 234.217,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29056,
    "c": 0.12898,
    "h": 270.9
  },
  "luminance": 0.02203
}

Semantic roles & 50–950 ramp

primary
#171F6A
secondary
#A0973D
accent
#D740E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #171F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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