#171D80#171D80

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

Color values

HEX#171D80
RGBrgb(23, 29, 128)
HSLhsl(237, 70%, 30%)
HSVhsv(237, 82%, 50%)
CMYKcmyk(82%, 77.3%, 0%, 49.8%)
CIE-LABlab(18.45, 34.88, -55.56)
CIE-LCHlch(18.45, 65.60, 302.12°)
OKLaboklab(31.16% -0.0001 -0.1609)
OKLCHoklch(31.16% 0.161 270)
XYZxyz(4.6877, 2.6189, 20.6763)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D80 #807A17
analogous
#175280 #171D80 #451780
triadic
#171D80 #80171D #1D8017
tetradic
#171D80 #801752 #807A17 #178045
square
#171D80 #801752 #807A17 #178045
split-complementary
#171D80 #804517 #528017
monochromatic
#05061A #0E114C #171D80 #2029B4 #3640DB

Accessibility & contrast

On white

13.78
#171D80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171D80
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D80#FFFFFF#000000##FFFFFF
##171D801.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003283
Deuteranopia (green-blind)
#00287E
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #171d80;
/* rgb */ color: rgb(23, 29, 128);
/* oklch */ color: oklch(31.2% 0.161 270.0);
Tailwind
colors: {
  custom: {
    50: '#695aa6',
    500: '#171d80',
    950: '#000000',
  },
}
SCSS
$custom: #171d80;
$custom-light: #695aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#171d80",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 128
  },
  "hsl": {
    "h": 236.571,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31164,
    "c": 0.16095,
    "h": 270
  },
  "luminance": 0.02619
}

Semantic roles & 50–950 ramp

primary
#171D80
secondary
#B4AE3E
accent
#E23BEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #171D80

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

Preview Lab → · Contrast checker → · Palette generator →

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