#171D7D#171D7D

#171D7D is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.157 H 270.2°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#171D7D
RGBrgb(23, 29, 125)
HSLhsl(236, 69%, 29%)
HSVhsv(236, 82%, 49%)
CMYKcmyk(81.6%, 76.8%, 0%, 51%)
CIE-LABlab(18.10, 33.79, -54.23)
CIE-LCHlch(18.10, 63.90, 301.93°)
OKLaboklab(30.82% 0.0004 -0.1571)
OKLCHoklch(30.82% 0.157 270.2)
XYZxyz(4.4931, 2.5410, 19.6517)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D7D #7D7717
analogous
#17507D #171D7D #44177D
triadic
#171D7D #7D171D #1D7D17
tetradic
#171D7D #7D1750 #7D7717 #177D44
square
#171D7D #7D1750 #7D7717 #177D44
split-complementary
#171D7D #7D4417 #507D17
monochromatic
#05061A #0D1149 #171D7D #2129B1 #353EDA

Accessibility & contrast

On white

13.92
#171D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#171D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D7D
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D7D#FFFFFF#000000##FFFFFF
##171D7D1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003180
Deuteranopia (green-blind)
#00277B
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #171d7d;
/* rgb */ color: rgb(23, 29, 125);
/* oklch */ color: oklch(30.8% 0.157 270.2);
Tailwind
colors: {
  custom: {
    50: '#685aa4',
    500: '#171d7d',
    950: '#000000',
  },
}
SCSS
$custom: #171d7d;
$custom-light: #685aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#171d7d",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 236.471,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30817,
    "c": 0.15706,
    "h": 270.2
  },
  "luminance": 0.02542
}

Semantic roles & 50–950 ramp

primary
#171D7D
secondary
#B2AB3E
accent
#E13CEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #171D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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