#171D68#171D68

#171D68 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.5% C 0.129 H 271.5°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#171D68
RGBrgb(23, 29, 104)
HSLhsl(236, 64%, 25%)
HSVhsv(236, 78%, 41%)
CMYKcmyk(77.9%, 72.1%, 0%, 59.2%)
CIE-LABlab(15.80, 25.90, -44.45)
CIE-LCHlch(15.80, 51.45, 300.22°)
OKLaboklab(28.47% 0.0034 -0.1286)
OKLCHoklch(28.47% 0.129 271.5)
XYZxyz(3.2906, 2.0600, 13.3182)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D68 #686217
analogous
#174568 #171D68 #3A1768
triadic
#171D68 #68171D #1D6817
tetradic
#171D68 #681745 #686217 #17683A
square
#171D68 #681745 #686217 #17683A
split-complementary
#171D68 #683A17 #456817
monochromatic
#060719 #0C0F36 #171D68 #222B9A #2D39CC

Accessibility & contrast

On white

14.87
#171D68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#171D68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D68
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D68#FFFFFF#000000##FFFFFF
##171D681.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171d68;
/* rgb */ color: rgb(23, 29, 104);
/* oklch */ color: oklch(28.5% 0.129 271.5);
Tailwind
colors: {
  custom: {
    50: '#625994',
    500: '#171d68',
    950: '#000000',
  },
}
SCSS
$custom: #171d68;
$custom-light: #625994;
$custom-dark: #000000;
JSON
{
  "hex": "#171d68",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 104
  },
  "hsl": {
    "h": 235.556,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28473,
    "c": 0.12864,
    "h": 271.5
  },
  "luminance": 0.0206
}

Semantic roles & 50–950 ramp

primary
#171D68
secondary
#9E973D
accent
#DB41E7
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #171D68

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

Preview Lab → · Contrast checker → · Palette generator →

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