#171D7F#171D7F

#171D7F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.160 H 270.0°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#171D7F
RGBrgb(23, 29, 127)
HSLhsl(237, 69%, 29%)
HSVhsv(237, 82%, 50%)
CMYKcmyk(81.9%, 77.2%, 0%, 50.2%)
CIE-LABlab(18.33, 34.52, -55.12)
CIE-LCHlch(18.33, 65.04, 302.06°)
OKLaboklab(31.05% 0.0001 -0.1597)
OKLCHoklch(31.05% 0.16 270)
XYZxyz(4.6222, 2.5927, 20.3314)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D7F #7F7917
analogous
#17517F #171D7F #45177F
triadic
#171D7F #7F171D #1D7F17
tetradic
#171D7F #7F1751 #7F7917 #177F45
square
#171D7F #7F1751 #7F7917 #177F45
split-complementary
#171D7F #7F4517 #517F17
monochromatic
#05061A #0E114B #171D7F #2029B3 #363FDB

Accessibility & contrast

On white

13.83
#171D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#171D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D7F
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D7F#FFFFFF#000000##FFFFFF
##171D7F1.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#00277D
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #171d7f;
/* rgb */ color: rgb(23, 29, 127);
/* oklch */ color: oklch(31.0% 0.160 270.0);
Tailwind
colors: {
  custom: {
    50: '#695aa5',
    500: '#171d7f',
    950: '#000000',
  },
}
SCSS
$custom: #171d7f;
$custom-light: #695aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#171d7f",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 236.538,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31048,
    "c": 0.15966,
    "h": 270
  },
  "luminance": 0.02593
}

Semantic roles & 50–950 ramp

primary
#171D7F
secondary
#B4AD3E
accent
#E23CEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #171D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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