#171A61#171A61

#171A61 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.2% C 0.122 H 272.9°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#171A61
RGBrgb(23, 26, 97)
HSLhsl(238, 62%, 24%)
HSVhsv(238, 76%, 38%)
CMYKcmyk(76.3%, 73.2%, 0%, 62%)
CIE-LABlab(14.31, 25.23, -42.28)
CIE-LCHlch(14.31, 49.24, 300.83°)
OKLaboklab(27.17% 0.0063 -0.1222)
OKLCHoklch(27.17% 0.122 272.9)
XYZxyz(2.8797, 1.7837, 11.4995)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A61 #615E17
analogous
#173F61 #171A61 #391761
triadic
#171A61 #61171A #1A6117
tetradic
#171A61 #61173F #615E17 #176139
square
#171A61 #61173F #615E17 #176139
split-complementary
#171A61 #613917 #3F6117
monochromatic
#060719 #0B0D30 #171A61 #232792 #2E35C4

Accessibility & contrast

On white

15.48
#171A61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#171A61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171A61
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A61#FFFFFF#000000##FFFFFF
##171A611.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002863
Deuteranopia (green-blind)
#002160
Tritanopia (blue-blind)
#002D3B
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #171a61;
/* rgb */ color: rgb(23, 26, 97);
/* oklch */ color: oklch(27.2% 0.122 272.9);
Tailwind
colors: {
  custom: {
    50: '#61578f',
    500: '#171a61',
    950: '#000000',
  },
}
SCSS
$custom: #171a61;
$custom-light: #61578f;
$custom-dark: #000000;
JSON
{
  "hex": "#171a61",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 97
  },
  "hsl": {
    "h": 237.568,
    "s": 61.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.27172,
    "c": 0.12241,
    "h": 272.9
  },
  "luminance": 0.01784
}

Semantic roles & 50–950 ramp

primary
#171A61
secondary
#98943C
accent
#DE43E5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #171A61

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

Preview Lab → · Contrast checker → · Palette generator →

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