#171F85#171F85

#171F85 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.165 H 269.4°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#171F85
RGBrgb(23, 31, 133)
HSLhsl(236, 71%, 31%)
HSVhsv(236, 83%, 52%)
CMYKcmyk(82.7%, 76.7%, 0%, 47.8%)
CIE-LABlab(19.45, 35.47, -57.06)
CIE-LCHlch(19.45, 67.19, 301.86°)
OKLaboklab(32.05% -0.0016 -0.1653)
OKLCHoklch(32.05% 0.165 269.4)
XYZxyz(5.0755, 2.8550, 22.4693)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F85 #857D17
analogous
#175685 #171F85 #461785
triadic
#171F85 #85171F #1F8517
tetradic
#171F85 #851756 #857D17 #178546
square
#171F85 #851756 #857D17 #178546
split-complementary
#171F85 #854617 #568517
monochromatic
#05071D #0E1351 #171F85 #202BB9 #3A45DD

Accessibility & contrast

On white

13.37
#171F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#171F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F85
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F85#FFFFFF#000000##FFFFFF
##171F851.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#002A83
Tritanopia (blue-blind)
#003D50
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #171f85;
/* rgb */ color: rgb(23, 31, 133);
/* oklch */ color: oklch(32.0% 0.165 269.4);
Tailwind
colors: {
  custom: {
    50: '#6a5caa',
    500: '#171f85',
    950: '#000000',
  },
}
SCSS
$custom: #171f85;
$custom-light: #6a5caa;
$custom-dark: #000000;
JSON
{
  "hex": "#171f85",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 235.636,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32048,
    "c": 0.16532,
    "h": 269.4
  },
  "luminance": 0.02856
}

Semantic roles & 50–950 ramp

primary
#171F85
secondary
#B9B03F
accent
#E03BED
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #171F85

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

Preview Lab → · Contrast checker → · Palette generator →

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