#171C61#171C61

#171C61 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.5% C 0.120 H 272.3°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#171C61
RGBrgb(23, 28, 97)
HSLhsl(236, 62%, 24%)
HSVhsv(236, 76%, 38%)
CMYKcmyk(76.3%, 71.1%, 0%, 62%)
CIE-LABlab(14.82, 23.85, -41.44)
CIE-LCHlch(14.82, 47.82, 299.92°)
OKLaboklab(27.54% 0.0049 -0.1198)
OKLCHoklch(27.54% 0.12 272.3)
XYZxyz(2.9255, 1.8754, 11.5148)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C61 #615C17
analogous
#174161 #171C61 #371761
triadic
#171C61 #61171C #1C6117
tetradic
#171C61 #611741 #615C17 #176137
square
#171C61 #611741 #615C17 #176137
split-complementary
#171C61 #613717 #416117
monochromatic
#060719 #0B0E30 #171C61 #232A92 #2E39C4

Accessibility & contrast

On white

15.27
#171C61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#171C61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C61
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C61#FFFFFF#000000##FFFFFF
##171C611.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002963
Deuteranopia (green-blind)
#002260
Tritanopia (blue-blind)
#002E3B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #171c61;
/* rgb */ color: rgb(23, 28, 97);
/* oklch */ color: oklch(27.5% 0.120 272.3);
Tailwind
colors: {
  custom: {
    50: '#61588f',
    500: '#171c61',
    950: '#000000',
  },
}
SCSS
$custom: #171c61;
$custom-light: #61588f;
$custom-dark: #000000;
JSON
{
  "hex": "#171c61",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 97
  },
  "hsl": {
    "h": 235.946,
    "s": 61.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.27542,
    "c": 0.11989,
    "h": 272.3
  },
  "luminance": 0.01876
}

Semantic roles & 50–950 ramp

primary
#171C61
secondary
#98913C
accent
#DA43E5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #171C61

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

Preview Lab → · Contrast checker → · Palette generator →

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