#171D71#171D71

#171D71 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.5% C 0.141 H 270.9°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#171D71
RGBrgb(23, 29, 113)
HSLhsl(236, 66%, 27%)
HSVhsv(236, 80%, 44%)
CMYKcmyk(79.6%, 74.3%, 0%, 55.7%)
CIE-LABlab(16.76, 29.34, -48.74)
CIE-LCHlch(16.76, 56.89, 301.05°)
OKLaboklab(29.46% 0.0023 -0.1411)
OKLCHoklch(29.46% 0.141 270.9)
XYZxyz(3.7723, 2.2527, 15.8556)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D71 #716B17
analogous
#174A71 #171D71 #3E1771
triadic
#171D71 #71171D #1D7117
tetradic
#171D71 #71174A #716B17 #17713E
square
#171D71 #71174A #716B17 #17713E
split-complementary
#171D71 #713E17 #4A7117
monochromatic
#050719 #0D103E #171D71 #212AA4 #2E39D4

Accessibility & contrast

On white

14.48
#171D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#171D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D71
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D71#FFFFFF#000000##FFFFFF
##171D711.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#00256F
Tritanopia (blue-blind)
#003545
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #171d71;
/* rgb */ color: rgb(23, 29, 113);
/* oklch */ color: oklch(29.5% 0.141 270.9);
Tailwind
colors: {
  custom: {
    50: '#65599b',
    500: '#171d71',
    950: '#000000',
  },
}
SCSS
$custom: #171d71;
$custom-light: #65599b;
$custom-dark: #000000;
JSON
{
  "hex": "#171d71",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 113
  },
  "hsl": {
    "h": 236,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29458,
    "c": 0.14111,
    "h": 270.9
  },
  "luminance": 0.02253
}

Semantic roles & 50–950 ramp

primary
#171D71
secondary
#A7A03D
accent
#DE3FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #171D71

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

Preview Lab → · Contrast checker → · Palette generator →

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