#171C68#171C68

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

Color values

HEX#171C68
RGBrgb(23, 28, 104)
HSLhsl(236, 64%, 25%)
HSVhsv(236, 78%, 41%)
CMYKcmyk(77.9%, 73.1%, 0%, 59.2%)
CIE-LABlab(15.55, 26.57, -44.86)
CIE-LCHlch(15.55, 52.14, 300.64°)
OKLaboklab(28.29% 0.0041 -0.1298)
OKLCHoklch(28.29% 0.13 271.8)
XYZxyz(3.2664, 2.0118, 13.3102)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C68 #686317
analogous
#174568 #171C68 #3A1768
triadic
#171C68 #68171C #1C6817
tetradic
#171C68 #681745 #686317 #17683A
square
#171C68 #681745 #686317 #17683A
split-complementary
#171C68 #683A17 #456817
monochromatic
#060719 #0C0F36 #171C68 #22299A #2D37CC

Accessibility & contrast

On white

14.97
#171C68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171C68
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C68#FFFFFF#000000##FFFFFF
##171C681.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6A
Deuteranopia (green-blind)
#002367
Tritanopia (blue-blind)
#00313F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #171c68;
/* rgb */ color: rgb(23, 28, 104);
/* oklch */ color: oklch(28.3% 0.130 271.8);
Tailwind
colors: {
  custom: {
    50: '#635894',
    500: '#171c68',
    950: '#000000',
  },
}
SCSS
$custom: #171c68;
$custom-light: #635894;
$custom-dark: #000000;
JSON
{
  "hex": "#171c68",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 104
  },
  "hsl": {
    "h": 236.296,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28293,
    "c": 0.12985,
    "h": 271.8
  },
  "luminance": 0.02012
}

Semantic roles & 50–950 ramp

primary
#171C68
secondary
#9E983D
accent
#DD41E7
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #171C68

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

Preview Lab → · Contrast checker → · Palette generator →

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