#171F71#171F71

#171F71 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.8% C 0.139 H 270.5°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#171F71
RGBrgb(23, 31, 113)
HSLhsl(235, 66%, 27%)
HSVhsv(235, 80%, 44%)
CMYKcmyk(79.6%, 72.6%, 0%, 55.7%)
CIE-LABlab(17.25, 28.02, -47.94)
CIE-LCHlch(17.25, 55.53, 300.30°)
OKLaboklab(29.81% 0.0012 -0.1388)
OKLCHoklch(29.81% 0.139 270.5)
XYZxyz(3.8230, 2.3540, 15.8725)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F71 #716917
analogous
#174C71 #171F71 #3C1771
triadic
#171F71 #71171F #1F7117
tetradic
#171F71 #71174C #716917 #17713C
square
#171F71 #71174C #716917 #17713C
split-complementary
#171F71 #713C17 #4C7117
monochromatic
#050719 #0D113E #171F71 #212DA4 #2E3DD4

Accessibility & contrast

On white

14.28
#171F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#171F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F71
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F71#FFFFFF#000000##FFFFFF
##171F711.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F73
Deuteranopia (green-blind)
#00266F
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #171f71;
/* rgb */ color: rgb(23, 31, 113);
/* oklch */ color: oklch(29.8% 0.139 270.5);
Tailwind
colors: {
  custom: {
    50: '#655b9b',
    500: '#171f71',
    950: '#000000',
  },
}
SCSS
$custom: #171f71;
$custom-light: #655b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#171f71",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 234.667,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29806,
    "c": 0.13877,
    "h": 270.5
  },
  "luminance": 0.02354
}

Semantic roles & 50–950 ramp

primary
#171F71
secondary
#A79D3D
accent
#DA3FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #171F71

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

Preview Lab → · Contrast checker → · Palette generator →

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