#171D6F#171D6F

#171D6F is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.2% C 0.138 H 271.1°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#171D6F
RGBrgb(23, 29, 111)
HSLhsl(236, 66%, 26%)
HSVhsv(236, 79%, 44%)
CMYKcmyk(79.3%, 73.9%, 0%, 56.5%)
CIE-LABlab(16.54, 28.58, -47.80)
CIE-LCHlch(16.54, 55.69, 300.88°)
OKLaboklab(29.24% 0.0026 -0.1383)
OKLCHoklch(29.24% 0.138 271.1)
XYZxyz(3.6610, 2.2082, 15.2691)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D6F #6F6917
analogous
#17496F #171D6F #3D176F
triadic
#171D6F #6F171D #1D6F17
tetradic
#171D6F #6F1749 #6F6917 #176F3D
square
#171D6F #6F1749 #6F6917 #176F3D
split-complementary
#171D6F #6F3D17 #496F17
monochromatic
#050719 #0C103C #171D6F #222AA2 #2D38D3

Accessibility & contrast

On white

14.57
#171D6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171D6F
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D6F#FFFFFF#000000##FFFFFF
##171D6F1.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D71
Deuteranopia (green-blind)
#00256E
Tritanopia (blue-blind)
#003443
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #171d6f;
/* rgb */ color: rgb(23, 29, 111);
/* oklch */ color: oklch(29.2% 0.138 271.1);
Tailwind
colors: {
  custom: {
    50: '#645999',
    500: '#171d6f',
    950: '#000000',
  },
}
SCSS
$custom: #171d6f;
$custom-light: #645999;
$custom-dark: #000000;
JSON
{
  "hex": "#171d6f",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 111
  },
  "hsl": {
    "h": 235.909,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29236,
    "c": 0.13837,
    "h": 271.1
  },
  "luminance": 0.02209
}

Semantic roles & 50–950 ramp

primary
#171D6F
secondary
#A59E3D
accent
#DD3FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #171D6F

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

Preview Lab → · Contrast checker → · Palette generator →

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