#171A8C#171A8C

#171A8C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.179 H 269.6°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#171A8C
RGBrgb(23, 26, 140)
HSLhsl(238, 72%, 32%)
HSVhsv(238, 84%, 55%)
CMYKcmyk(83.6%, 81.4%, 0%, 45.1%)
CIE-LABlab(19.28, 40.79, -61.74)
CIE-LCHlch(19.28, 73.99, 303.45°)
OKLaboklab(32.17% -0.0013 -0.1788)
OKLCHoklch(32.17% 0.179 269.6)
XYZxyz(5.4548, 2.8138, 25.0615)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A8C #8C8917
analogous
#17548C #171A8C #4F178C
triadic
#171A8C #8C171A #1A8C17
tetradic
#171A8C #8C1754 #8C8917 #178C4F
square
#171A8C #8C1754 #8C8917 #178C4F
split-complementary
#171A8C #8C4F17 #548C17
monochromatic
#060623 #0E1057 #171A8C #2024C1 #3E42DF

Accessibility & contrast

On white

13.44
#171A8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#171A8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171A8C
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A8C#FFFFFF#000000##FFFFFF
##171A8C1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358F
Deuteranopia (green-blind)
#00298A
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #171a8c;
/* rgb */ color: rgb(23, 26, 140);
/* oklch */ color: oklch(32.2% 0.179 269.6);
Tailwind
colors: {
  custom: {
    50: '#6d59af',
    500: '#171a8c',
    950: '#000000',
  },
}
SCSS
$custom: #171a8c;
$custom-light: #6d59af;
$custom-dark: #000000;
JSON
{
  "hex": "#171a8c",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 140
  },
  "hsl": {
    "h": 238.462,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3217,
    "c": 0.17882,
    "h": 269.6
  },
  "luminance": 0.02814
}

Semantic roles & 50–950 ramp

primary
#171A8C
secondary
#BFBC3F
accent
#EA39EF
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080411
muted
#7B7980

Preview Lab

Preview with #171A8C

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

Preview Lab → · Contrast checker → · Palette generator →

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