#171C71#171C71

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

Color values

HEX#171C71
RGBrgb(23, 28, 113)
HSLhsl(237, 66%, 27%)
HSVhsv(237, 80%, 44%)
CMYKcmyk(79.6%, 75.2%, 0%, 55.7%)
CIE-LABlab(16.53, 29.99, -49.12)
CIE-LCHlch(16.53, 57.56, 301.40°)
OKLaboklab(29.29% 0.0028 -0.1422)
OKLCHoklch(29.29% 0.142 271.1)
XYZxyz(3.7482, 2.2045, 15.8476)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C71 #716C17
analogous
#174971 #171C71 #3F1771
triadic
#171C71 #71171C #1C7117
tetradic
#171C71 #711749 #716C17 #17713F
square
#171C71 #711749 #716C17 #17713F
split-complementary
#171C71 #713F17 #497117
monochromatic
#050619 #0D0F3E #171C71 #2129A4 #2E37D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##171C71#FFFFFF#000000##FFFFFF
##171C711.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)
#002D74
Deuteranopia (green-blind)
#00246F
Tritanopia (blue-blind)
#003444
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #171c71;
/* rgb */ color: rgb(23, 28, 113);
/* oklch */ color: oklch(29.3% 0.142 271.1);
Tailwind
colors: {
  custom: {
    50: '#65599b',
    500: '#171c71',
    950: '#000000',
  },
}
SCSS
$custom: #171c71;
$custom-light: #65599b;
$custom-dark: #000000;
JSON
{
  "hex": "#171c71",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 113
  },
  "hsl": {
    "h": 236.667,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29289,
    "c": 0.14224,
    "h": 271.1
  },
  "luminance": 0.02205
}

Semantic roles & 50–950 ramp

primary
#171C71
secondary
#A7A13D
accent
#E03FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #171C71

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

Preview Lab → · Contrast checker → · Palette generator →

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