#171A71#171A71

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

Color values

HEX#171A71
RGBrgb(23, 26, 113)
HSLhsl(238, 66%, 27%)
HSVhsv(238, 80%, 44%)
CMYKcmyk(79.6%, 77%, 0%, 55.7%)
CIE-LABlab(16.07, 31.27, -49.88)
CIE-LCHlch(16.07, 58.87, 302.08°)
OKLaboklab(28.96% 0.0038 -0.1444)
OKLCHoklch(28.96% 0.144 271.5)
XYZxyz(3.7024, 2.1128, 15.8323)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A71 #716E17
analogous
#174771 #171A71 #411771
triadic
#171A71 #71171A #1A7117
tetradic
#171A71 #711747 #716E17 #177141
square
#171A71 #711747 #716E17 #177141
split-complementary
#171A71 #714117 #477117
monochromatic
#050619 #0D0E3E #171A71 #2126A4 #2E34D4

Accessibility & contrast

On white

14.76
#171A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#171A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171A71
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A71#FFFFFF#000000##FFFFFF
##171A711.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00236F
Tritanopia (blue-blind)
#003344
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #171a71;
/* rgb */ color: rgb(23, 26, 113);
/* oklch */ color: oklch(29.0% 0.144 271.5);
Tailwind
colors: {
  custom: {
    50: '#65579b',
    500: '#171a71',
    950: '#000000',
  },
}
SCSS
$custom: #171a71;
$custom-light: #65579b;
$custom-dark: #000000;
JSON
{
  "hex": "#171a71",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 238,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.28962,
    "c": 0.14445,
    "h": 271.5
  },
  "luminance": 0.02113
}

Semantic roles & 50–950 ramp

primary
#171A71
secondary
#A7A33D
accent
#E33FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #171A71

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

Preview Lab → · Contrast checker → · Palette generator →

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