#171D7A#171D7A

#171D7A is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.5% C 0.153 H 270.3°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#171D7A
RGBrgb(23, 29, 122)
HSLhsl(236, 68%, 28%)
HSVhsv(236, 81%, 48%)
CMYKcmyk(81.1%, 76.2%, 0%, 52.2%)
CIE-LABlab(17.76, 32.70, -52.88)
CIE-LCHlch(17.76, 62.17, 301.73°)
OKLaboklab(30.47% 0.0009 -0.1531)
OKLCHoklch(30.47% 0.153 270.3)
XYZxyz(4.3044, 2.4655, 18.6576)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D7A #7A7417
analogous
#174E7A #171D7A #42177A
triadic
#171D7A #7A171D #1D7A17
tetradic
#171D7A #7A174E #7A7417 #177A42
square
#171D7A #7A174E #7A7417 #177A42
split-complementary
#171D7A #7A4217 #4E7A17
monochromatic
#05061A #0D1147 #171D7A #2129AD #333DD9

Accessibility & contrast

On white

14.06
#171D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#171D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D7A
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D7A#FFFFFF#000000##FFFFFF
##171D7A1.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307D
Deuteranopia (green-blind)
#002778
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #171d7a;
/* rgb */ color: rgb(23, 29, 122);
/* oklch */ color: oklch(30.5% 0.153 270.3);
Tailwind
colors: {
  custom: {
    50: '#685aa2',
    500: '#171d7a',
    950: '#000000',
  },
}
SCSS
$custom: #171d7a;
$custom-light: #685aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#171d7a",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 122
  },
  "hsl": {
    "h": 236.364,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30473,
    "c": 0.15314,
    "h": 270.3
  },
  "luminance": 0.02466
}

Semantic roles & 50–950 ramp

primary
#171D7A
secondary
#AFA83E
accent
#E13DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #171D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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