#171F7D#171F7D

#171F7D is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.1% C 0.155 H 269.9°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#171F7D
RGBrgb(23, 31, 125)
HSLhsl(235, 69%, 29%)
HSVhsv(235, 82%, 49%)
CMYKcmyk(81.6%, 75.2%, 0%, 51%)
CIE-LABlab(18.55, 32.54, -53.49)
CIE-LCHlch(18.55, 62.61, 301.32°)
OKLaboklab(31.14% -0.0004 -0.1549)
OKLCHoklch(31.14% 0.155 269.9)
XYZxyz(4.5437, 2.6423, 19.6686)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F7D #7D7517
analogous
#17527D #171F7D #42177D
triadic
#171F7D #7D171F #1F7D17
tetradic
#171F7D #7D1752 #7D7517 #177D42
square
#171F7D #7D1752 #7D7517 #177D42
split-complementary
#171F7D #7D4217 #527D17
monochromatic
#05061A #0D1249 #171F7D #212CB1 #3542DA

Accessibility & contrast

On white

13.74
#171F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#171F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F7D
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F7D#FFFFFF#000000##FFFFFF
##171F7D1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#00287B
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #171f7d;
/* rgb */ color: rgb(23, 31, 125);
/* oklch */ color: oklch(31.1% 0.155 269.9);
Tailwind
colors: {
  custom: {
    50: '#685ba4',
    500: '#171f7d',
    950: '#000000',
  },
}
SCSS
$custom: #171f7d;
$custom-light: #685ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#171f7d",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 235.294,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31136,
    "c": 0.15493,
    "h": 269.9
  },
  "luminance": 0.02643
}

Semantic roles & 50–950 ramp

primary
#171F7D
secondary
#B2A93E
accent
#DE3CEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #171F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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