#171C60#171C60

#171C60 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.4% C 0.118 H 272.4°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#171C60
RGBrgb(23, 28, 96)
HSLhsl(236, 61%, 23%)
HSVhsv(236, 76%, 38%)
CMYKcmyk(76%, 70.8%, 0%, 62.4%)
CIE-LABlab(14.72, 23.46, -40.94)
CIE-LCHlch(14.72, 47.19, 299.81°)
OKLaboklab(27.44% 0.005 -0.1183)
OKLCHoklch(27.44% 0.118 272.4)
XYZxyz(2.8792, 1.8569, 11.2707)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C60 #605B17
analogous
#174060 #171C60 #361760
triadic
#171C60 #60171C #1C6017
tetradic
#171C60 #601740 #605B17 #176036
square
#171C60 #601740 #605B17 #176036
split-complementary
#171C60 #603617 #406017
monochromatic
#060719 #0B0E2F #171C60 #232A91 #2F39C3

Accessibility & contrast

On white

15.31
#171C60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#171C60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C60
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C60#FFFFFF#000000##FFFFFF
##171C601.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002962
Deuteranopia (green-blind)
#00225F
Tritanopia (blue-blind)
#002E3B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #171c60;
/* rgb */ color: rgb(23, 28, 96);
/* oklch */ color: oklch(27.4% 0.118 272.4);
Tailwind
colors: {
  custom: {
    50: '#60588e',
    500: '#171c60',
    950: '#000000',
  },
}
SCSS
$custom: #171c60;
$custom-light: #60588e;
$custom-dark: #000000;
JSON
{
  "hex": "#171c60",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 96
  },
  "hsl": {
    "h": 235.89,
    "s": 61.345,
    "l": 23.333
  },
  "oklch": {
    "l": 0.27437,
    "c": 0.11844,
    "h": 272.4
  },
  "luminance": 0.01857
}

Semantic roles & 50–950 ramp

primary
#171C60
secondary
#97903C
accent
#D943E4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #171C60

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

Preview Lab → · Contrast checker → · Palette generator →

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